Go Back   CodingForums.com > :: Client side development > JavaScript programming > Post a JavaScript

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rating: Thread Rating: 3 votes, 2.33 average.
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-24-2003, 05:40 AM   PM User | #1
dga
New Coder

 
Join Date: May 2003
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
dga is an unknown quantity at this point
Popup Killer Solution

Here's a little code snippet solution for Popup Killer software:

<script language="Javascript">
<!-- begin

function winopen(url){
var Win = window.open(url,"popup","menu=no")
if (Win == null)
window.parent.location.href='disablepopupkiller.htm';
}

// end-->
</script>


<a href="javascript:winopen('popuppage.htm');">click</a>

If the new window is "killed" because of the software, it loads a new page in the parent window ... or the last line of code can be replaced with a document.write('content here'); or show a hidden <div>. Any of these three can be used to tell the user to disable the software).

It works on my computer with ie6 ... let me know how it works on yours (if you have popup killer software installed).

dga
dga is offline   Reply With Quote
Old 08-19-2003, 04:47 PM   PM User | #2
dga
New Coder

 
Join Date: May 2003
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
dga is an unknown quantity at this point
Not really a solution, but an alternative.

I've gotten no feedback on the script, that leads me to conclude that:

a) No one has popup killer software installed on their pc, or
b) It does work as it should for those who do have popup killer software installed on their pc, or
c) People are more inclined to comment on things that don't work.

dga
dga is offline   Reply With Quote
Old 08-19-2003, 05:15 PM   PM User | #3
Vladdy
Senior Coder

 
Join Date: Jun 2002
Location: Nashua, NH
Posts: 1,724
Thanks: 0
Thanked 0 Times in 0 Posts
Vladdy is an unknown quantity at this point
1. I bet that most of web developers on this forum do not use IE as their primary browser and therefore do not need any extra popup killing software.
2. People are much more likely to check something out when you provide a link to a demo page so that they do not have to waste their time pasting your code into a test page.
3. Those whose opinion worse anything, try to avoid popping up widows unless absolutely necessary (which is usually specialized applications, never a regular web site), therefore they do not really care about such code.

Solution to popup killing software is not using popups
__________________
Vladdy | KL
"Working web site is not the one that looks the same on common graphical browsers running on desktop computers, but the one that adequately delivers information regardless of device accessing it"
Vladdy is offline   Reply With Quote
Old 08-21-2003, 09:22 AM   PM User | #4
zoobie
Senior Coder

 
Join Date: Jun 2002
Location: ColoRockyz
Posts: 1,642
Thanks: 1
Thanked 0 Times in 0 Posts
zoobie has a little shameless behaviour in the past
This is interesting...Please make a demo page...You can ask for testers here or in the General web design forum...Too bad all the abuse makes such code necessary.
__________________
Zoobie or not Zoobie...That is the problem.
<body onUnload="flush( ! )">
zoobie is offline   Reply With Quote
Old 08-22-2003, 03:02 PM   PM User | #5
allida77
Regular Coder

 
Join Date: Jun 2002
Location: Cincinnati, OH
Posts: 545
Thanks: 0
Thanked 0 Times in 0 Posts
allida77 is an unknown quantity at this point
I would like to see a demo of this page too. This is a useful script for those who do any kind of intranet work.
__________________
does this sig match?
allida77 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:48 AM.


Advertisement
Log in to turn off these ads.