Click to See Complete Forum and Search --> : popups and blockers


gulliver
11-30-2003, 12:46 PM
I use (non auto-opening, triggered by onclick) popup miniwindows throughout my site to display supplementary info without taking the user from the main page.

They're very simple... javascript with redundant href to cover if javascript disabled.

The page contains this code...

---------
<a href="URL/" onClick="OpenMiniWindow(this.href); return false" target="newWin">link</a>
---------

And is linked to a master.js file containing...

-----------
// Open MiniWindow

function OpenMiniWindow (c) {
window.open(c,
'miniwindow',
'toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=450, height=400,left=0,top=0');
}
-----------

My question is simply... how are they affected by the various popup blockers? As a Mac user, I can't simply download and try what's mainly a PC thing.

96turnerri
11-30-2003, 01:22 PM
1) they will not be shown if popup killers are active unless, user has set allow pops for www.YOURDOMAIN.com, you could put next to link (popup), most popup killing programs make a noise on blocking a popup so the user knows its a popup if they want to see it they allow popups

2) i recommend using window.open rather than javascript therefore it will still work even if the user has js disabled


<a href="#####.htm" onclick="window.open( this.href, '', 'height=175,width=300,scrollbars=no' );return false;">Help?</a>

ray326
11-30-2003, 07:58 PM
Action handlers like onclick ARE Javascript.

EricT
12-01-2003, 07:57 AM
I am using some pop ups on my web site with this kind of code.

It works with IE but I am not able to control the size of my pop-up with Netscape 7.

Do you have any idea?

Thanks in advance.

Eric,

96turnerri
12-01-2003, 02:01 PM
you got a copy of your code or link because i had no trouble in controlling windows sizes in NN7.X