This javascript function will return the root of the current page location.function getLocationRoot() {
var sLocation = document.location.toString()
return sLocation.substr(0, sLocation.indexOf(document.location.pathname))
}
Monday, July 9, 2007
getLocationRoot()
By
Sten Hougaard
on
Monday, July 09, 2007
Etiketter: Javascript
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment