473,803 Members | 3,886 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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


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="printerfr iendlypage.html "
target="_blank" >printer friendly version</a>
opens a new window without any need for script.
If you want to use script
<a href="printerfr iendlypage.html "
target="someWin dowName"
onclick="window .open(this.href , this.target,
'width=300,heig ht=300,scrollba rs,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*****@hotmai l.com> wrote in message
news:22******** *************** ***@posting.goo gle.com...
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,prin t.story">Printa ble
format</a>
Jul 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
13489
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 closed at the end of the operation. How do I go about this... Issues are: 1. I believe a showModaldialog would stop all back ground processing and shift control to the modal dialog. 2. I would like to close the dialog from the parent window...
3
3448
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
2469
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 drive root). The menu item text is "Open .Net Command Window Here". When you click it, it opens a command window positioned at that directory and runs the vsvars32.bat file to set the .Net Framework environment variable settings. This makes it...
6
1448
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 include parameters?
1
5235
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 ACTION="baz_add_action.asp" METHOD="post"> ...here go the Window.open script <INPUT NAME="add<%=p_prod_id%>" TYPE="checkbox" value="ON">
1
2841
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 open in new tab/window button works for them. Is there some setting I am missing that allows this to feature to work correctly? I don't have any code purposely preventing pages from being opened in the same window...don't know why that happens.
4
3556
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. Is this something that I can change with my code inside ASP.NET/C#.NET? And where? Does anyone know how to avoid this? It is very annoying and the website is not working as it should. People should be able to open new tabs/windows on my...
2
1995
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
3271
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 infoWindow=window.open('usgsMain.html','USGSwindow','status=no,resizable=yes,scrollbars=yes');
0
9700
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10546
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10292
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10068
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7603
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6841
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5627
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4275
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3796
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.