D wrote:
Clients want a new "printer friendly" page to open when clicking on a
link. I think it can't be done in a way that won't trigger the common
pop up blockers out there.
Well
<a href="printerfriendlypage.html"
target="_blank">printer friendly version</a>
opens a new window without any need for script.
If you want to use script
<a href="printerfriendlypage.html"
target="someWindowName"
onclick="window.open(this.href, this.target,
'width=300,height=300,scrollbars,resizable');
return false;">printer friendly version</a>
but you would better build a page with a stylesheet for printing so that
there is no need at all to open a new window for a special page tailored
for printing, instead the stylesheet does all the work.
--
Martin Honnen
http://JavaScript.FAQTs.com/