homepage Welcome to WebmasterWorld Guest from 54.163.72.86
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
Popups
How exactly do you define them?
daosmith




msg:1476696
 2:57 pm on Jul 3, 2003 (gmt 0)

How do browsers that support popup 'blocking' define popups? I assume that using that target=_blank attribute does not constitue popup creation, but what about javascript window creation? Or are popups only those windows that don't open as a direct result of the user clicking on a link?

 

trillianjedi




msg:1476697
 3:56 pm on Jul 3, 2003 (gmt 0)

The google MKII ToolBar beta seems to block everything that is created by a webpage, irrespective of whether or not it's a result of a user clicking on a link...

I think it works very well. It's easy to force the link to open - you hold down CTRL whilst clicking. I think most of the other pop-up stoppers also work in a similar way.

Hopefully the next round of internet browsers will build in some blocking functionality anyway. I know that Opera 7.0 does.

TJ

BlobFisk




msg:1476698
 4:06 pm on Jul 3, 2003 (gmt 0)

Yep, Opera 7.11 allows you to only accept popups that you specifically request.... one of it's many great features!

drbrain




msg:1476699
 4:32 pm on Jul 3, 2003 (gmt 0)

Netscape 7.1 and Mozilla both have pop-up blocking (does 7.0 have pop-up blocking? I don't recall). They do not block unrequested popups.

tedster




msg:1476700
 7:13 pm on Jul 3, 2003 (gmt 0)

drbrain, is that a typo? Do you mean that Mozilla does not block requested pop-ups?

jatar_k




msg:1476701
 7:19 pm on Jul 3, 2003 (gmt 0)

it must be because Mozilla does not block requested pop-ups only unrequested.

You would be surprised how many sites create new windows in the unrequested style and they get blocked. I haven't really looked at the specific code but I can only assume they are not instantiated by the actual click.

drbrain




msg:1476702
 7:40 pm on Jul 3, 2003 (gmt 0)

Doh! Yes that was a typo.

What I meant was "Mozilla blocks unrequested popups".

<a href="javascript:window.open('foo')">link</a>

Does not get blocked.

<body onload="window.open('foo')">

Does get blocked.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved