使用iframe嵌入的方式:function insertPage(url)
{
document.write("<iframe src=\"" + url + "\" style=\"width:100%;height:300px;border:0;\"></iframe>"); //这里的width和height要自己调.
}
insertPage("http://www.cjol.com");
{
document.write("<iframe src=\"" + url + "\" style=\"width:100%;height:300px;border:0;\"></iframe>"); //这里的width和height要自己调.
}
insertPage("http://www.cjol.com");
你是中国人才热线的?
动态加入IFRAME
myIframe=document.createElement("IFRAME")
document.body.insertAdjacentElement("AfterBegin",myIframe)
myIfram.location="test.htm"
或者静态的在网页中加入:
<iframe src="test.htm"></iframe>