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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Retrieving the URL from the Address Bar

Status
Not open for further replies.

Bentley22

Programmer
Joined
Aug 29, 2001
Messages
205
Location
CA
Is it possible to get this value? I'm designing a site that uses frames, and I want to make sure that if a user opens one of the pages, it will reload it into the frame.

I can't just tell the frameset page to load instead, its a dynamic javascript that requires the names of the files to be loaded into each frame. Thus I need something that can detect the filename of the page that the client has opened. That way I can pass it to the frameset page.
 
nm, found the answer, location.pathname
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top