框架.html 1.52 KB
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="http://static.yohobuy.com/admin/css/style.css" rel="stylesheet" type="text/css" media="all" />
<script type="text/javascript" src="http://static.yohobuy.com/admin/js/jquery.min.js"></script>
<link type="text/css" href="http://static.yohobuy.com/admin/js/jqueryui/themes/ui-lightness/jquery-ui-1.8.7.custom.css" rel="stylesheet" />
<script type="text/javascript" src="http://static.yohobuy.com/admin/js/jqueryui/ui/jquery-ui-1.8.7.custom.js"></script>
<title>YOHO有货后台管理</title>
</head>

<body>
<div class="mainbox">
  <div class="daohang">当前位置:<a href="main.html">首页</a> > <span>框架</span></div>
  
<form name="form1" id="form1">
<input type="text" name="username" id="username"/>
</form>

<br />
<br />

<input name=""  value="为子页面赋值" type="button" onclick="document.getElementById('ifin').contentWindow.document.getElementById ('ppp').innerHTML='66666';" />

<br />
<br />
<input name=""  value="调用子级方法" type="button" onclick="document.getElementById('ifin').contentWindow.test2();" />
<br />
<br />


<script type="text/javascript">
function test(){	
	alert("父级方法");	
}
</script>

<br />
<br />

<iframe width="100%" height="560" frameborder="0" scrolling="no" src="框架-iframe.html" name="ifin"></iframe>
</div>
</body>
</html>