Forum Moderators: phranque

Message Too Old, No Replies

Blocking Blockers

         

Bob_Norris

10:23 pm on Feb 19, 2004 (gmt 0)

10+ Year Member



Hello,

I run a live customer support applacation. THe customer end is loaded as a pop up when a link is clicked on our site. I know some blockers will block this and was wondering about work arounds. I hate pop ups too but some that contain information pertainning to sites are nedded. How about a code like this?
<a href="newpage.html" onClick="popup('newpage.html');return false;"></a>

PSilver

10:33 pm on Feb 19, 2004 (gmt 0)

10+ Year Member



Mozilla would let that through (it only blocks popups on loading or leaving a page), but the Google toolbar blocker would block it.

I've found the blocking on the Google toolbar a bit too fierce, and as they all block the same bits of javascript I don't think you're going to have a lot of luck. You could use the old traditional href_="blah.html" target="_blank" (or is it "_new" these days?) and then you could resize the browser window using some javascript like this:

<script>
window.resizeTo(500,300);
</script>

Personally, I hate script that resizes my windows, but that seems to work. Please only use it internally!

Bob_Norris

11:06 pm on Feb 19, 2004 (gmt 0)

10+ Year Member



Hi Silver,

I agree, any script that resizes a browser window is not good. You can have a look here <Sorry, no URLs. See TOS [webmasterworld.com]> and see how we use the window.
Someone said if you had a pop up open up from the pop up (take its place) then auto close (if the blocker dont get it) the first window. You think this might work?

[edited by: tedster at 11:28 pm (utc) on Feb. 19, 2004]

PSilver

10:24 am on Feb 20, 2004 (gmt 0)

10+ Year Member



Hmm, no, I don't think that'll work, the first pop-up won't get there in the first place, and it's still just another browser window, so it'll block any pop-up opening from there as well.

I've been fiddling about with the method I mentioned and it seems to work, but I haven't wound up my PC to check it with Google toolbar yet. While it's as good as the method you've been using, at least it'll still show the window you want when people click on the link.

Bob_Norris

2:46 pm on Feb 20, 2004 (gmt 0)

10+ Year Member



Hello,,

So could you show me an example of the script that would go on a page called www.nopage.com/page1 to keep it from being blocked?

(Mods this is not a real link just a test)

PSilver

12:10 pm on Feb 23, 2004 (gmt 0)

10+ Year Member



The link that makes the page pop-up looks like this:

<a href="page1" target="_new">test popup</a>

In the page you then have:

<script>
window.resizeTo(500,300);
</script>

Inside the <head></head> tags (along with your page title and whatever else you want.)

If you go to my website via my 'user profile' then you can see the 'test popup' and see what the code being run is.

I believe there is also Javascript that lets you turn off the toolbars, but I'm not sure they will work, that you'll have to fiddle with yourself.