asp编程求助
我想获得当前页面的URL,自己写了个实验的htm页面,代码如下:
<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>新建网页 1</title>
<script language="VbScript">
<!--
dim temp
temp=Request.ServerVariables("URL")
-->
</script>
</head>
<body>
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="200" id="AutoNumber1">
<tr>
<td>
<script>
document.write(temp)
</script>
</td>
</tr>
</table>
</body>
</html>
可是运行时报错说有错误代码,请教哪里错了,该如何改正,谢谢!
问题点数:20、回复次数:2Top
1 楼hbhbhbhbhb1021(天外水火(我要多努力))回复于 2005-06-08 18:31:50 得分 10
vbscript里脚本里不能有Request对象Top
2 楼cslren(位流)回复于 2005-06-08 19:12:42 得分 10
<script>
alert(document.URL);
</script>Top




