Open a new window

teammatt3's picture

He has: 2,102 posts

Joined: Sep 2003

Does anyone know of a javascript code out there that opens a new window when a user goes to a certain page, that won't be blocked by a pop-up blocker?

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

No, because the whole point of the popup blockers is to stop auto-windows. If someone purposefully clicks on a link that opens a new window, popup blockers won't stop it.

Abhishek Reddy's picture

He has: 3,348 posts

Joined: Jul 2001

There is a way to circumvent some popup blockers, but it's not necessarily reliable. I don't know what the present state of affairs is with newer releases of clients and blockers.

In any case, what are you trying to do? If a user doesn't want popups, don't force 'em the other way. There are usually better alternatives for most applications. Wink

Suzanne, sometimes Mozilla browsers block popups unconditionally, and one has to whitelist a domain to have the window pop up. Popup treatment is inconsistent across the field. Smiling

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

Really? It's not supposed to be. It shouldn't interfere with the user's choice to click on a link that opens in a new window. Of course, using accessible coding helps considerably -- having the option to open the link in a new window, or a new tab.

i.e. Don't eliminate the href!

Abhishek Reddy's picture

He has: 3,348 posts

Joined: Jul 2001

If you have access to a Moz browser (Firefox 0.8 preferably) go to the Post Reply page in any thread here at TWF. Click the smileys dropdown menu and select "show all smileys". If www.webmaster-forums.net is not on the whitelist, all you'll get is an information icon in the status bar. Click that icon and you'll see the page's URL. You may choose to "unblock site" from there. Sad

On some pages, requested popups work, and on others they don't. I think it has to do with different implementations of window.open() -- I haven't seriously investigated. It might be a known bug, or even corrected in an extension. Mozilla's default popup-blocker isn't as smart as say, Opera's.

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

I happen to have Firefox open... Wink

And I can see the smilie lists fine. I have no sites in my "allow" list, I have block popup windows blocked. And yet, I have a happy little Smilie List right here... What I don't have is a dropdown for smilies! Laugh

see?

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

P.S. I posted that from Firefox, this from Safari. I'm a wild and crazy two browser kinda gal!

Abhishek Reddy's picture

He has: 3,348 posts

Joined: Jul 2001

This is what I see. I removed TWF from the allow list for that take. Interesting. Confused

teammatt3's picture

He has: 2,102 posts

Joined: Sep 2003

Quote: In any case, what are you trying to do? If a user doesn't want popups, don't force 'em the other way. There are usually better alternatives for most applications.

I just want to play a joke on my friend that's all, hava a window pop-up and one pop-up after that-on and on and on, so he will have to restart his computer Laughing out loud Laughing out loud

He has: 1,758 posts

Joined: Jul 2002

Some friend you are... Wink

This might do it: http://www.newdream.net/crash/

I used to have a site in my faves that had loads of javascripts to crash IE, but I can't seem to track it down. I'll post here if I do.

Andy

He has: 1,758 posts

Joined: Jul 2002

Right... the URL is: http://web.mouser.org/bomb/

Unfortunatly it doesnt seem to be working right now. They may be having server problems.

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

wow, Abhi, I don't even have that whole top bar?!

He has: 1,758 posts

Joined: Jul 2002

http://web.mouser.org/bomb/ seems to be working now!

JeevesBond's picture

He has: 3,956 posts

Joined: Jun 2002

Hmmm, it should be mentioned that using popups is a bad practice anyway - if the user doesn't realise a popup has been opened this has the same effect as breaking the back button, also it is the users decision whether they open a new window to display a link - it is not the perogative of the web designer.

a Padded Cell our articles site!

teammatt3's picture

He has: 2,102 posts

Joined: Sep 2003

Thanks Andy for the help, hehehe

Abhishek Reddy's picture

He has: 3,348 posts

Joined: Jul 2001

Ah, a joke. Sticking out tongue I built one of those recursive popups in a class once. Fortunately, the sysop took it in good humour. Wink

Suzanne, I'm assuming that one of two things is happening. Either vB sniffs browsers and/or settings, and displays an appropriately functional UI, or we're using different skins. I think I have TWF Experimental selected... let me check... yes, I do. What skin are you using?

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

I'm using the same as you! What is this weirdness...

Abhishek Reddy's picture

He has: 3,348 posts

Joined: Jul 2001

Perhaps the mac build of Firefox has some known quirks...? This has me stumped too. Shocked

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.