如何用javascript从另一htm页面读出参数,并判断是否有参数传过来!

zwy0309 2003-09-25 12:17:45
如何用javascript从另一htm页面读出参数,并判断是否有参数传过来!
...全文
57 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
zwy0309 2003-09-25
  • 打赏
  • 举报
回复
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">

<script type="text/javascript">//如何写下面的javascript代码
if ( Request.Form("query")!=null || Request"no"!=null )
{
requestedUrl=mid.htm?query=request"query"&class=request"no";

}
else
{
requestedUrl=mid.htm?class=100;
}
</script>


</head>

<frameset rows="238,556,38" frameborder="no" border="0" framespacing="0">
<frame src="top.htm" name="topFrame" scrolling="NO" noresize >
<frame src=mid.htm?+<%=requestedUrl%> name="mainFrame">

<frame src="bottom.htm" name="bottomFrame" scrolling="NO" noresize>
</frameset>
<noframes><body>
</body></noframes>
</html>
sw47 2003-09-25
  • 打赏
  • 举报
回复
newWindow=window.open
("http://guide-p.infoseek.com/WW/NS/Titles?qt=RFC+1738+&col=WW") msgWindow.document.write("newWindow.location.href = " +
newWindow.location.href + "<P>")
msgWindow.document.close()
msgWindow.document.write("newWindow.location.search = " +
newWindow.location.search + "<P>")
msgWindow.document.close()
ckr_x 2003-09-25
  • 打赏
  • 举报
回复
openner?
不太明白兄弟描述的场景。
imafool 2003-09-25
  • 打赏
  • 举报
回复
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">

<script type="text/javascript">//如何写下面的javascript代码
alert(window.location.search);
</script>


</head>

<frameset rows="238,556,38" frameborder="no" border="0" framespacing="0">
<frame src="top.htm" name="topFrame" scrolling="NO" noresize >
<frame src=mid.htm?+<%=requestedUrl%> name="mainFrame">

<frame src="bottom.htm" name="bottomFrame" scrolling="NO" noresize>
</frameset>
<noframes><body>
</body></noframes>
</html>

87,987

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧