shep02ss
03-27-2003, 02:46 PM
I am trying to change the href property of a link and when I try to change it, it only appends my link on to the current site. How do you overwrite the link completely!
Thanks
Thanks
|
Click to See Complete Forum and Search --> : Change Href shep02ss 03-27-2003, 02:46 PM I am trying to change the href property of a link and when I try to change it, it only appends my link on to the current site. How do you overwrite the link completely! Thanks havik 03-27-2003, 02:47 PM You mean like: window.location.href="url"; ? that would change the current page to another window. Havik shep02ss 03-27-2003, 02:51 PM I have the following in my page: <a id='link1' href='http://www.msn.com'> I have a function that looks for 'link1' and changes the href of that id, but it appends it to the URL of the current page that I have open like. Say I'm on http://www.yahoo.com and I have a function that changes a link to http://www.cnn.com this is what I get http://www.yahoo.comhttp://www.cnn.com Does that help? havik 03-27-2003, 02:57 PM well, I can't really say much without seeing the code. But did you try clearing the url of the current page first, then making the switch? Havik webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |