Results 1 to 2 of 2
Jun 6, 2006, 12:34 #1
- Join Date
- Feb 2005
- 0 Post(s)
- 0 Thread(s)
How can I get the filename of the page that a script is running in?
I've experimented with document.location and such, but the problem with that is that if the user visits http://www.domain.com/ instead of http://www.domain.com/index.html then document.location wont return the index.html portion.
Is it even possible for JS to access the filename that it exists inside of?