PDA

View Full Version : How can I make Javascript open the links in a new window


LaERtiS
02-13-2003, 04:33 PM
I am reffering to the RightClick Menu at: http://javascriptkit.com/script/script2/rightclickmenu.shtml

My question is how do I make the Menu open the links in a new window?
Like in HTML <a target="_NEW" href="URL">

I think what has to be changed is a line in the rightmenu.js:

<a href='#' onmousedown='parent.window.location.href=\""+lnk+"\"'>


Thanks in advance!

LaERtiS

A1ien51
02-13-2003, 07:56 PM
preitem+=("<a href='"+lnk+"' target='_blank' ><img src='"+ico+"' width='16' height='16' class='ico'> "+txt+"</a>")

try that