This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
I'm trying to open a new pop-up window when the user click on a hyperlink. The problem is that sometimes more than 1 window is opened when the link is clicked. I'm trying to open a non-resizable window without the address & tool bars. But when the extra window appears, my contents are shown in a normal window while the non-resizable window is blank.
This is how my codes looked like:
Does anyone knows what I'm missing out here or doing wrong?
Not sure it is related, but I had all kinds of problem specifing empty string as URL for window.open(). Some browser treated it as the same url as main page, some as "page can not be displayed". Some would assume that this is http url, so if page accessed using https, it will giv popup "do you want to display not-secure items" (the same happends if you not specify a src in iframe). I actually ended up using empty.html file - empty file that specially used instead of empty string.