<% Function Geturl() Dim str,host,url,keyword,full str="http://" host = Request.ServerVariables("HTTP_HOST") url = Request.ServerVariables("PATH_INFO") '或url keyword = Request.ServerVariables("QUERY_STRING") if keyword <> "" then full = str&host&url&"?"&keyword else full = str&host&url end if Geturl =full End Function %> <%=Geturl()%>