Help please,
I have links on my web site.
I would like to accomplish that visitor would have 2 options based on checkbox:
1)every link would open in its on window
2)or there would be just one window for all links on top of its parent window.
so far I wrote this code but it does not work.
Every time I click checkbox and link, new window opens
but parent window
changes its content too.
function changeProperties(target)
{
for (var i=0; i<=(document.links.length-1); i++){
document.links[i].onclick=function(){
link_href= document.links[i].href.toString( );
winName= this.name.toString( );
if (typeof(this.name) != “object”)
{ winName = window.open(link_href,winName); winName.focus();}
}
}//end function
<A href=”
<FORM name=’targetform’><INPUT TYPE=’checkbox’ NAME=’targetnew’ ONCLICK=’changeProperties(this.checked)’ checked>link option</FORM>