я застрял на чем-то, где я хочу, чтобы ссылки Test 1 и Test 2 открывались в новом окне, не target=_blank в новом окне, чтобы всплывающее окно не открывалось как вкладка в firefox и т. д. "href"
в javascript для заполнения href #
в ссылках Test 1 и Test 2. Что я делаю неправильно с этим, поэтому я также могу открыть всплывающее окно в новом окне, но не в качестве цели _blank?
<p><a id="test1" href="#">Test 1</a></p>
<p><a id="test2" href="#">Test 2</a></p>
<script>
if(chatlink_flag == 'true')
{
document.getElementById('test1')window.open.href('http://www.example.com/chat1/open.htm','window1','scrollbars=no,menubar=no,height=600,width=800,resizable=yes,toolbar=no,location=no,status=no');
document.getElementById('test2')window.open.href('http://www.example.com/chat2/open.htm','window2','scrollbars=no,menubar=no,height=600,width=800,resizable=yes,toolbar=no,location=no,status=no');
}else{
document.getElementById('test1')window.open.href('http://www.example.com/chat1/closed.htm','window1','scrollbars=no,menubar=no,height=600,width=800,resizable=yes,toolbar=no,location=no,status=no');
document.getElementById('test2')window.open.href('http://www.example.com/chat2/closed.htm','window2','scrollbars=no,menubar=no,height=600,width=800,resizable=yes,toolbar=no,location=no,status=no');
}
</script>