471,577 Members | 1,616 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,577 software developers and data experts.

"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 1528


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
reply views Thread by XIAOLAOHU | last post: by
reply views Thread by lumer26 | last post: by
reply views Thread by Vinnie | last post: by
1 post views Thread by lumer26 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.