Vbscript能不能得到地址栏里面的内容???

Fengq 2003-08-26 10:11:23
Vbscript能不能得到地址栏里面的内容???
如果能的话?怎么弄?
...全文
97 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
dreamover 2003-08-29
  • 打赏
  • 举报
回复
window.location
cloudchen 2003-08-29
  • 打赏
  • 举报
回复
<SCRIPT LANGUAGE="vbScript">
alert location.href
</SCRIPT>
超级大笨狼 2003-08-29
  • 打赏
  • 举报
回复
msgbox window.location.href
是这个东西吗?
fuzq 2003-08-29
  • 打赏
  • 举报
回复
Request.ServerVariables("URL")
Fengq 2003-08-29
  • 打赏
  • 举报
回复
这个是得到访问的网页的地址
当使用框架时,我想得到地址栏的内容.
lions911 2003-08-26
  • 打赏
  • 举报
回复
<%
'得到当前页面的地址
Function GetUrl()
On Error Resume Next
Dim strTemp
If LCase(Request.ServerVariables("HTTPS")) = "off" Then
strTemp = "http://"
Else
strTemp = "https://"
End If
strTemp = strTemp & Request.ServerVariables("SERVER_NAME")
If Request.ServerVariables("SERVER_PORT") <> 80 Then strTemp = strTemp & ":" & Request.ServerVariables("SERVER_PORT")
strTemp = strTemp & Request.ServerVariables("URL")
If Trim(Request.QueryString) <> "" Then strTemp = strTemp & "?" & Trim(Request.QueryString)
GetUrl = strTemp
End Function
Response.write GetUrl()
%>

28,390

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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