That has a fatal flaw.
If javascript is disabled, it will load "#" instead, which is an empty target, meaning it'll just add that to your URI and do nothing.
You should instead use:
Code:
<a href="flash.html" target="_blank" onclick="return window.open(this.href,'newwin','width=800,height=622');">View File</a>
This will make the default href of the link be the page you desire. The javascript will get this value and use it to open the window. If javascript is not enabled, it will open this link instead, in a new window (target="_blank"). If javascript is enabled, it will do as it does now, except that I needed to add "return" to the function so it returns just the popup rather than returing the link value. Basically, this sets it to open a new window with the link in it, but overrides it with a popup window if javascript is enabled.
Always remember fallbacks for older browsers, or those without javascript.
Bookmarks