I have external JavaScript file with simple document.write() call. Problem is that a tag that i generate should open new browser window.
document.write('<a class="vcsupport" onclick="window.open("http://somesite.com/visitor/login.html","mywindow","location=0,status=0,scrollbars=0, width=500,height=500")" href="#"><img src="http://somesite.com/assets/en/someimage.gif" height="70" width="240" /></a>');
It doesn't work, doesn't open new browser window. I know something wrong but cannot figure what.
thanks