Changing the frameset row value
I am changing the frameset with this line
parent.docum开发者_如何学编程ent.all("Edit").rows="0%,100%,0%";
this is the frameset i am changing
<frameset id="Edit" border="0" frameborder="0" rows="0%,0%,100%">
<frame name="PermaPlayer" src="EditPermaPlayer.html?h=<%= System.DateTime.Now.Ticks %>" />
<frame name="EditPlaylist" src="EditPlaylist.aspx?id=<%= playlistEditingId %>&hs=<%= System.DateTime.Now.Ticks %>" />
<frame name="EditPlaylistLoading" src="EditPlaylistLoading.aspx?&hsm=<%= System.DateTime.Now.Ticks %>" />
</frameset>
Changing it IE works and it works in chrome. It doesnt work in Firefox. Is there something diferent that needs to be done in Firefox?
document.all
is proprietary to Internet Explorer and is absolutely non-standard. Moreover, it's hideously outdated. Use document.getElementById
instead:
parent.document.getElementById('Edit').rows = "0%,100%,0%";
精彩评论