cortneyann
07-21-2003, 04:15 PM
I have a javascript sitemap on my webpage and I'd like the links to open in new windows. I've tried the <base target="_blank">
thing, and doing the links one by one, but nothing works. Any suggestions??
To view sitemap: http://www.geocities.com/cortneyann2005/index.html
the_dark_one02
07-21-2003, 09:17 PM
you should ALWAYS use tareget="_blanc" however there is a javascript equivalent that i tend to use,
<a href="window.open("file.htm")">Text to Show</a>
there that should do it!.
so where it says
menu.subMenus[1].addItem("Backgrounds","location='http://www.geocities.com/cortneyann2005/backgrounds.html'");
you could put
menu.subMenus[1].addItem("Backgrounds","window.open("file.htm")");
i think that should work?!?
within 5 minutes, please use the edit button. ~Moderator
cortneyann
07-21-2003, 10:45 PM
It doesn't work!! :S My little map thingy didn't even show up at all. Any other ideas?