日期:2014-05-16 浏览次数:20509 次
Unsafe JavaScript attempt to access frame with URL http://localhost/lszfw/e/admin/AddNews.php?enews=AddNews&classid=62 from frame with URL http://localhost/lszfw/e/admin/ShowClassNav.php?ecms=1. The frame being accessed set 'document.domain' to 'localhost', but the frame requesting access did not. Both must set 'document.domain' to the same value to allow access.
<!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 content="text/html; charset=gb2312" http-equiv="Content-Type">
</head>
<body>
<iframe height='200px' id='iframe1' src="http://www.b.com/B.html"></iframe>
</body>
</html>
<!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=gb2312" />
</head>
<body style="background-color:#ccc">
<div style="height:600px;">sdfsfsssfsfs</div>
<script>
window.onload = function()
{
//先判断iframe是否存在,存在的话,删除掉先
if(document.getElementById("sheight"))
{
document.body.removeChild(document.getElementById("sheight"));
}
var iframe = document.createElement("iframe");
iframe.width='0px';
iframe.height='0px';
iframe.id='sheight';
var currentheight = document.body.scroll