The Window Pop-up Method

Test this pop-up method: Using the Window Pop-up Method


Windows IE: OnLoaded window blocked by security but Ctrl Refresh displays it.
Windows Firefox: OnLoaded window blocked by security but you can choose to allow it.
Windows Safari: OnLoaded window blocked by security and you cannot choose to allow it.
Windows Opera: OnLoaded window blocked by security but you can choose to allow it.
Mac IE: Popped right up without blocker but it should have utilized pop-up blocker of some type.
Mac Firefox: OnLoaded window blocked by security but you can choose to allow it.
Mac Safari: OnLoaded window blocked by security and you cannot choose to allow it.

BACK TO LIST OF POP-UP METHODS
BACK TO HOME PAGE



The Window Pop-up Method above used an onLoad event to load a window, purposely, to let you see that browsers' pop-up blockers will activate. Except for IE Mac, which allowed the window to come right up. Of course, IE Mac is an abandoned orphan, and this old browser was expecting the user to install a third party pop-up blocker if he felt bad about pop-ups. Instead of using onLoad, onMousemove, or even setTimeout to pop your pop-up, try something less obvious to blockers and don't run it from the BODY tag. We like to use onMouseover on objects that will get hovered, or onClick on objects that are sure to be clicked. That way the blockers won't complain or block your pop-up windows.

You may use this technique to present pop-up ads, or to solicit subscribers to your ezine, newsletter, or RSS feed. Use if for reminders, warnings, or statistics displaying. You may get survey participants, ask for donations, or use it for political fund raising. You can even inform visitors about some of your other related websites. There is no end to the types of purposes that pop-ups can be used for.

If your pop-up is about thumbnail enlargement, check out What is the easiest way to do thumbnail image enlargement windows? If you want thumbnail enlargement without clicking, check out Making an Image Enlarge When The Mouse Cursor Is Hovering Over It.





THE CODE



<html>
<head><title>The Window Pop-up Method</title>

<script type="text/javascript">

function popup(){
w= window.open ("","p","location=0,status=0,scrollbars=0,width=150,height=200")
w.moveTo(200,200)
w.document.write('<H2>Window</H2>')}

function pictureWindow(){w=window.open("circuitboard-smallblue.jpg","ww","top=317,left=540,width=170,height=132");}

function shutWindow(){if(w && !w.closed) w.close();}

</script>
</head>

<body onload="javascript: popup()"><!--IE says: popup blocked by google toolbar, and FF hates it too-->
<B>ONLOADed Window: Hold down Ctrl key as you press the Refresh button to see the window in IE. In Firefox, when you see that blocked pop-up message, use the Options button and choose to allow pop-ups for this site!<br><br>On the other hand, browsers like pop-ups resulting from intentional actions, like the links below.<br><br>

<a HREF="javascript:pictureWindow()">open picture window</a><br>

<a HREF="javascript:shutWindow()">close picture window</a><br></B>

</body>
</html>