Hi,
I'm using the following code
to get the URL of the page and have it replacingCode:var myPage = window.location;in a document.write.Code:' + myPage + '
If I have an anchor on a page
http://mydomain.com/folder/pagename.html#2
I would like the window.location to return
http://mydomain.com/folder/pagename.html2
hence without # but with the anchor name.
Is there any way I can have it eliminating the #? (Something like replace # with nothing, take it out or such?)
Thanks for any help you can provide...



Reply With Quote
that worked like a charm!

Bookmarks