Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How get URL of current HTML page? 1

Status
Not open for further replies.

gazolba

Programmer
Dec 4, 2001
167
US
How to I get the URL of the current HTML page in Vbscript?
 
Code:
Dim vProtocol
vProtocol = Request.ServerVariables("SERVER_PROTOCOL")
vProtocol = Left(vProtocol, InString(vProtocol,"/"))
	
Dim vURL
vURL = vProtocol & Request.ServerVariables("SERVER_NAME") & Request.ServerVariables("PATH_INFO")


I don't do much VBScript so there might be some syntax errors here, but this might get you started.
 
Or you can use Javascript to get it.

document.location ------------------
Freedom is a Right
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top