Forum Moderators: open
- target="blank" (which is deprecated and gives you a lot less control than JS).
- javascript.
Personally, since I use a tabbed browser, I hate links that open in a new window without telling me (because they fail in Firefox). If the link says something like "View larger (new window)" I don't have any problem with it and I think it's often the best solution.
Precise stats on that will depend on your market. But, as a rule of thumb, assume that JS-only navigations won't work for 15% of your initial visitors.
That number may drop after a few months of operation as those not using Javascript will learn to avoid your site.
<a href="page.html" onclick="popUp();return false;" target="_blank">Click Me</a>
That way non-js visitors, including spiders, can still get the page. And I also include some navigation back to the main product page in a <noscript> that follows the window close <script> section on the would-be pop-up page.
Most pop-up blockers today don't block pop-ups that require a user click to open. They usually bock just the onload, onunload 'automatic' pop-up. Users of blockers that do block any instance of window.open should notice that fact soon after installation and be able to cope.
Unfortunately, there are a few blockers on the market (older versions of Panicware, for example) that deactivate the entire link above so even the straight HTML version doesn't work anymore. But the sales are good from the enlargement pages, so on balance, the approach is successful for me.
Note: the javascript portion of this discussion is now
split off and moved to the JavaScript Forum itself:
[webmasterworld.com...]