I have a ton of code snippets I store in my Office One Note. Unfortunately, I couldn't find my handy javascript window.open script that one can place directly inside an href tag. So I decided to google and find a script. An hour later, after having found at least twenty links that claimed to show how to create a new window that either do not work at all, or don't work correctly in IE and/or Firefox or Safari, I figured out again how to create a cross-browser window open.
The many incorrect tutorials claim things like putting the <A onclick="Javascript:whatever()" href="#null">...</A> and so on, just do not work. I don't know where this myth started, but there are at least a dozen tutorials that assert this method to work. You'll just end up with a javascript error in any IE browser.
The correct way, assuming you want to open the window in a new window, that is cross-browser compatible for IE, Firefox, Opera, Safari and others is the following:
<A onclick="Javascript:window.open('/yourfolder/yourpage.aspx' , '_blank', 'height=600, width=800, resizable=yes');return false;" href="http://yourdomain.com/yourfolder/yourpage.html">here</A>
That's it. Don't believe any tutorial that tries to tell you otherwise. The key is to use the name "_blank" in the name parameters. Too many people think that the 'name' is for the page title name or something. It's not. It's the equivalent of the 'target="_blank"' parameter of the href tag. Also, you can add other settings other than just resizable, like scrollbars, menubar and others. You can find the correct parameters for an href tag here, but as with many of the other tutorials, the tutorial is incorrect in the way it uses the 'name' parameter, using it as a page title name, when in fact it's meant to describe the target (in this case, the incorrect tutorial uses 'popupwindow', when it should use '_new' or '_self' or '_blank'.
It's also important to include the 'return false;' javascript snippet, or you will get unintended results in Firefox, like opening up two windows instead of one.