473,320 Members | 1,993 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 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 1612


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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Kannan | last post by:
Hello, I have a requirement that specifies that I display a "Please Wait..." window (preferably modal) along with a gif that mimics a progress bar during a save operation. The dialog needs to be...
3
by: Shiperton Henethe | last post by:
Hi Can anyone tell me how to open up a new normal, full-sized browser window from a small popup window? I'm using something like this. <script language="javascript"> <!--
0
by: Tom Dacon | last post by:
"Open .Net Command Window Here" context menu for Windows Explorer: The reg file described below adds a new menu item to Windows Explorer's context menu when you right-click over a folder (or the...
6
by: mg | last post by:
window.open("xxxx.aspx",'') opens xxxx.asp on top But, window.open("xxxx.aspx? param1='abc'&param2='xyz'",'','toolbar=no') opens xxxx.aspx behind How can I open xxxx.aspx on top when I...
1
by: kbarrios | last post by:
Hi, I am working with VBScript and I put a "window.open" inside a "form action post" due that I am handing a "checkbox" on it, but the "window.open" doesn't work: <FORM...
1
by: R Reyes | last post by:
Hi, For some reason, the website I made does not open pages in a new page whenever I right-click "Open in New Tab" or "Open in New Window". But, as soon as I navigate to any other website, the...
4
by: R Reyes | last post by:
Whenever I right-click on "Open in New Tab/Window" my website ALWAYS opens in the same window/tab. This is most likely a programming issue because when I visit other websites it works just fine. ...
2
by: ron | last post by:
Good Morning, I need help, Does anybody know how to open the window "add to favoriates" of IE in .Net code Thanks!
4
by: arajunk | last post by:
In Firefox this opens a full size window (maximized) . In IE it opens the partial window requiring user to click restore (upper right) to maximize. What am I missing ? var...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.