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

D

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
 
M

Martin Honnen

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.
 
M

McKirahan

D said:
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>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

pop up blockers 2
pop up map 0
alert and pop-up blockers 7
Alert box and pop up blockers? 4
Pop-up Modal Window 1
How to process div pop up window? 0
pop up window title 9
Conditional window pop up through JS 2

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,565
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top