akdream
01-06-2011, 11:04 PM
Hi,
I'm using the following code
var myPage = window.location;
to get the URL of the page and have it replacing
' + myPage + ' in a document.write.
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...
I'm using the following code
var myPage = window.location;
to get the URL of the page and have it replacing
' + myPage + ' in a document.write.
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...