|
|
|||||||||||||||||||||
Popup Positioning We've all seen popup windows before, sometimes called interstitials. But did you know you can actually pre-position where the popup will occur on a page? The positioning of a popup window is just as important as the window itself. With the help of a little coding, you can target your popups to where you want it appear on your user's screen. : This is done with attributes in the Script tag! Check out this code example: <A HREF="javascript:void(0)" ONCLICK="window.open('http://www.YOURSITE.com','miniwin', 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0, width=300,height=170,screenX=300,screenY=400,top=300,left=400')">Click Here</a> Note that we use two sets of attributes to determine placement. "X" and "Y" coordinates are for Netscape, while "top" and "left" are for Explorer. |