473,396 Members | 1,917 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,396 software developers and data experts.

New window that isn't blocked?

We like to pop-up context help windows when a user clicks on certain terms
on our web pages. However, the popup blockers seem to block any links with
"target=_new" or "target=_blank". Is there a way with Javascript to open a
new window that is acceptable to the popup blockers? These context help
windows are a direct result of a user click, not an onload or onunload
event.

Thanks.
Jul 23 '05 #1
2 1836
In article <z7********************@adelphia.com>, no************@nospam.com
enlightened us with...
We like to pop-up context help windows when a user clicks on certain terms
on our web pages. However, the popup blockers seem to block any links with
"target=_new" or "target=_blank". Is there a way with Javascript to open a
new window that is acceptable to the popup blockers? These context help
windows are a direct result of a user click, not an onload or onunload
event.


Some popup blockers will allow popups that are the result of a direct user
click, some will not. No way around it. The user would have to put your site
in an allowed sites list or something.
They don't all work the same, is what I'm saying, so there wouldn't be just
one way to code it that would be acceptable - otherwise, all the idiots that
do popups people hate would do it. ;)

One of the many reasons popups don't do well in an internet context.

(I note you say "we like". What do your USERS like? If it's contextual help,
you can use an invisible div to write to and then make visible to simulate a
popup.)

--
--
~kaeli~
Punctuation, capitalization, and grammar are your friends,
and will help people think that you aren't such an ignorant
moron, after all.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 23 '05 #2
Hi,

I was facing the same problem. Then, to solve the same, I worked on it
created a solution. Firstly, try to use window.showModalessDialog()
method instead of window.open() method of javascript. Secondly, on the
onLoad() event of the modaless dialog write window.open();
this.close(); to open the actual popup window.
This will work perfect in IE irrespective of whether popup blockers
are turned on or off, but NN, opera it is not working.
Well I'm still working on the same for NN , opera etc..

If anyone finds a solution for the same for NN. Please reply back.
Take care,
Ashish
Jul 23 '05 #3

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

Similar topics

4
by: GTi | last post by:
Hello... I have a page located in a frame. This page contains a form. When the user submit this form I want to popup a "Please Wait" window popup window The post may take some time for the...
2
by: Rob Evans | last post by:
Please excuse my ignorance on this matter.. but.... What exactly is the definition of a "pop-up window" - by that I mean one which will be blocked by software such as the Google Toolbar and...
10
by: Marshall Dudley | last post by:
When I do the following line in Netscape, the popup loads as it should, but the parent window usually, but not always, reloads as well. <a href="#"...
14
by: Frances Del Rio | last post by:
I'm trying to open a url in a new window while pg loads (but NOT in a pop-up..) I need to do sthg like // while pg is loading.. window.location ='page.html' // but I need this to open in a...
4
by: Greg Collins [MVP] | last post by:
I've searched around and can't seem to find an answer to this... maybe someone has already done it. I want to create a redirection page for hyperlinks which point to an external site or file. This...
5
by: Simon Knox | last post by:
Hi I have a web app that has a legitimate use for pop up windows. My web app is an insurance quoting app. I use the window.open method to display another aspx page so that the user can check...
3
by: Richard | last post by:
I have an ASP.NET webapp that generates a shipping label for a customer. When the user clicks on the label preview gif or on a "Print..." submit button, the app will open another window with a...
18
by: len.hartley | last post by:
Hi, I am trying to pop-up a window when the user clicks on an image. The problem is that when the user clicks on the image and the window pops up OK, but the window underneath also proceeds to...
2
by: EnjoyNews | last post by:
A simple question probably... With this script: <script> function select_onchange(obj) { window.open(obj.value); } </script>
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.