<iframe src="see.jsp?url=这里写什么才能获得框架show的url呢?" align="top" name="idsee" width="800" height="100">
<iframe src="file/file.htm" width="800" height="600" id="show" name="show" align="middle">请问用javascript怎么做呢?see.jsp页面是:
<a href="<%=request.getParameter("url") %>" onClick="openwindow(this.href);return false">在新窗口显示</a>
在这里,我点在新窗口显示,弹出的内容是框架show的内容。
哪位知道?帮帮忙
<iframe src="file/file.htm" width="800" height="600" id="show" name="show" align="middle">请问用javascript怎么做呢?see.jsp页面是:
<a href="<%=request.getParameter("url") %>" onClick="openwindow(this.href);return false">在新窗口显示</a>
在这里,我点在新窗口显示,弹出的内容是框架show的内容。
哪位知道?帮帮忙
<iframe src="file/file.htm" width="800" height="600" id="show" name="show" align="middle" onload="document.getElementById('a').src='see.jsp?url='+this.src">
<a href="javascript:;" onClick="openwindow(window.parent.show.src);return false">在新窗口显示 </a>
<iframe id="a" align="top" name="idsee" width="800" height="100"> <iframe src="file/file.htm" width="800" height="600" id="show" name="show" align="middle" onload="document.getElementById('a').src='see.jsp?url='+this.src">
框架show 里面的内容是变化的。所以<a href=" <%=request.getParameter("url") %>" onClick="openwindow(this.href);return false">在新窗口显示 </a>
在新窗口里面的内容也是变化的。新窗口显示的内容要随着框架show的变心而变化。不好意思,我没有说清楚。现在请问要有什么办法呢?