If you do a proper search for “javascript window open” you will find hundreds of sources that show you the proper syntax. The first result I get is http://www.javascript-coder.com/wind...dow-open.phtml and there a little further down the page is clearly stated how window size is applied.
StadriWebmaster: Please, please, don’t annoy us with outdated code and bad practice.
For one, the name attribute is deprecated (except on form controls) and has been for at least ten years now. If at all you should use id instead. Likewise, the border attribute is deprecated and CSS should be used to style elements.
Secondly: What’s that javascript:void(0) crap in the anchor’s href doing? There is no “javascript” protocol and generally, if a link isn’t supposed to do anything, why write a link in the first place? You could use any element (and style it appropriately with CSS) – or make the link actually link the target so users would be able to get the content in case JS isn’t active or whatever.
StadriWebmaster: Please, please, don’t annoy us with outdated code and bad practice.
For one, the name attribute is deprecated (except on form controls) and has been for at least ten years now. If at all you should use id instead. Likewise, the border attribute is deprecated and CSS should be used to style elements.
Secondly: What’s that javascript:void(0) crap in the anchor’s href doing? There is no “javascript” protocol and generally, if a link isn’t supposed to do anything, why write a link in the first place? You could use any element (and style it appropriately with CSS) – or make the link actually link the target so users would be able to get the content in case JS isn’t active or whatever.
Whoa, sorry. I didn't know it was out of date or that there was anything wrong with it. I use it on many of my sites and it works like a charm.
Sorry, I may have been a little harsh. Yes, it may work but it’s outdated and bad practice nevertheless. If you want to go with time then read on unobtrusive javascript and behavioral separation.