Dennis M. Marks said:
1. The popup is blocked in Netscape on my computer.
What version of Netscape? Mozilla 1.7.1 and Firefox 0.9.2 allow the window
to open. Earlier versions of Mozilla (on which Netscape is based) may indeed
be buggy and refuse to open the window. If that is the case, you will need
to upgrade to a newer version of Netscape, or use Mozilla instead.
It's also possible you are running some "Internet security" software such as
Norton that is being overly aggressive and removing all occurrances of
window.open(). Again, if this is the case, you need to disable this
software, or disable the functionality that is causing the problem.
It's also possible someone has changed the default configuration of your
copy of Netscape to disallow *any* new windows from being opened.
2. I believe that this type of popup should not be stopped since it is
being requested by the user. I want my popup blocker to stop automatic
popups with ads at open and close, etc, not requested windows that are
showing site content.
As I've stated, Mozilla and Firefox in their default configuration, and IE
with the Google toolbar installed all allow the window to open because it is
user initiated
I don't think the popup blocking mechanism in Mozilla ever suffered from the
problems you describe, so it's unlikely it's a bug in Netscape inherited
from an earlier version of Mozilla. I'm betting you've got some other
software (Norton Internet Security, Window Washer, etc) or a configuration
change that is causing this problem.
<script type="text/javascript">
function openWindow(lnk) {
window.open(lnk.href, 'windowName','height=400,width=400');
return false;
}
</script>
<a href="
http://www.yahoo.com" onclick="return openWindow(this)">Yahoo</a>
The above code should work to open a new window reliably in the default
configuration of the newest Netscape, Mozilla, Firefox, Camino and Internet
Explorer with the Google toolbar installed. If the above code is not
working, the solution is not to find a "workaround", the solution is to
determine why it is not working for you and either change that
configuration, or change your design to not require new windows to be
opened.