main.html : <html> <frameset rows="59,*" > <frame src="top.html" name="topframe" scrolling="auto" noresize > <frameset cols="151,10,*" id="fs"> <frame src="a.html" name="leftframe" > <frame src="b.html" name="centerframe" scrolling="no" noresize> <frame src="c.html" name="rightframe"> </frameset> </frameset> </html> 要求在a.html中有一个链接,在改变leftframe的URL的同时,使leftframe的宽度变为300px,即fs.cols="300,10,*",同时还要求将centerframe的URL变为d.html . 请问该如何实现?
parent.fs.cols="300,10,*" praent.centerfram.lcation.href="d.html"
转载于:https://www.cnblogs.com/Fly-sky/archive/2009/03/03/1402012.html
相关资源:JS动态修改iframe高度和宽度的方法