Debt Consolidation - Credit Report - Debt Consolidation - Wordpress Theme - Debt Consolidation

PDA

View Full Version : window.open not working with IE6


akinak
Mar 21st 2008, 9:57 am
I have a link which opens a pop-up window. It is working fine with firefox and netscape,but with IE6 it simply opens the page in the same window. Here is the code:
<a href="PHIL305.html" onClick="JavaScript:window.open('PHIL305.html',' ','height=300,width=400,scrollbars=yes');return false;">PHIL 305
</a>

How can I make it open a pop-up window in IE6?? Is it the browser compatibility issue?

akinak
Mar 21st 2008, 11:42 am
ok..I modified the code and it worked. here is what I did:
<a href="PHIL305.html" onClick="window.open('PHIL305.html','_blank','height=300,width=400,scrollbars=yes');return false;">PHIL 305
</a>

Is there any other way also of doing it?

vpguy
Mar 21st 2008, 4:59 pm
You could also leave the middle parameter blank (use two quotes with no spaces or anything else in between them, such as ''). The first attempt probably failed because you had a space in between the quotes.