469,306 Members | 2,497 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,306 developers. It's quick & easy.

"open new window" that works with pop up blockers?

D
I don't know much about this.

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.

post responses here.

thanks!

Don
Jul 23 '05 #1
2 1459


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/
Jul 23 '05 #2
"D" <bb*****@hotmail.com> wrote in message
news:22**************************@posting.google.c om...
I don't know much about this.

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.

post responses here.

thanks!

Don


Just open up a new page via a link; the Chicago Tribune does it this way:

<a
href="/news/obituaries/chi-0411080110nov08,1,6295036,print.story">Printable
format</a>
Jul 23 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Kannan | last post: by
6 posts views Thread by mg | last post: by
4 posts views Thread by R Reyes | last post: by
4 posts views Thread by arajunk | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.