87,990
社区成员
发帖
与我相关
我的任务
分享
<!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>
<title>opera frame</title>
<script>
function initframes() {
var abc = document.getElementById("frset")
abc.rows = "*,50%";
var frame = document.createElement("frame");
frame.id = "Temp1";
frame.src= "http://baidu.com";
abc.appendChild(frame);
var frame2 = document.createElement("frame");
frame2.id = "Temp2 ";
frame2.src= "http://g.cn";
abc.appendChild(frame2);
}
window.onload = function ()
{
initframes();
}
</script>
</head>
<frameset id="frset" ></frameset>
</html>