Home >Web Front-end >HTML Tutorial >Questions about frameset loading order_html/css_WEB-ITnose
The code is as follows:
<frameset id="thisFrame" cols="13%,*" rows="*" border="2px" bordercolor="#CFB53B" frameborder="1" framespacing="2" > <frame id="fLeft" name="LeftFrame" src="LeftTree.aspx" scrolling="auto" frameBorder=0 /> <frame id="fRigth" name="MainFrame" src="OfficeIndex.aspx" scrolling="no" frameBorder=0 /> </frameset>
Set the right src to empty
After loading js on the left, set the right src
Set the right src to empty
After loading the js on the left, set the right src
Write in Page_Load of LeftTree.aspx:
Response.Write("cb07111ca5ae5ef678bbf0d01d0237c0this.parent.item(1).src='OfficeIndex.aspx';3fa3f474cbb4b6d948eebecb1be5dde4");
The result of running is that the right area is blank. .
parent.document.getElementById('fRigth').src="******************.html"
Sure enough, it works, thank you . .