Forum Moderators: phranque
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>
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!
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]
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.
<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.