Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
56 lines (55 sloc) 1.75 KB
<html lang="zh-tw">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>Cross Frame Prototype</title>
<link rel="stylesheet" type="text/css" href="">
<link rel="stylesheet" type="text/css" href="">
<link rel="stylesheet" type="text/css" href="">
<script type="text/javascript" src=""></script>
body {
padding: 10px;
h1 {
font-family: Georgia;
h2 {
font-family: Georgia;
margin: 10px 0;
#data {
height: 300px;
border: dotted 1px #ccc;
.loading {
background: url( center center no-repeat;
ul {
ul li {
margin-left: 25px;
list-style-type: decimal;
margin-bottom: 10px;
<div id="foo">
<a href=""></a>
<h2>Data Received:</h2>
<div id="data"></div>
<script type="text/javascript" src="yui-debug-fix.js"></script>
<script type="text/javascript" src="crossframe.js"></script>
<script type="text/javascript">
YUI().use("crossframe", "event-custom", function (Y) {
Y.Global.on("crossframe:message", function (e, data, callback) {
alert(e.origin);"#data").set("innerHTML", data.message);
Something went wrong with that request. Please try again.