CodeAve.com CodeAve.com - JavaScript - Misc
ASP
JavaScript
·Document Info
·Forms
·Images
·Miscellaneous
·Navigation
·Script Writers
·Contents
·What's New?
CSS
HTML
Maps
Links
Mail List
Search
Sitemap


 


Simple Pop-Under Window
Pop-Under ads are everywhere, they're unavoidable  Once only seemingly used by x10.com the pop-under ad is a staple in the advertisement/attention getting realm of the web.  So, how is it done?  The following example is a simple pop-under window that will open to Yahoo.com in a new window.  That window has the blur statement attached that will force the new window to the background on most browsers and a statement for the current window to focus, insuring it is the one on top.
View the Output
Text View
Print View
Mail this Link
Download the Code

<html>
<title>
CodeAve.com(Pop-Under Window)</title>
<body bgcolor=
"#FFFFFF">

<script language="JavaScript">
<!--
// Open a new window to Yahoo.com
// at the end of the window statement .blur will force
// the new window to the background with most browsers
window.open('http://yahoo.com','','width=700,height=400,left=200,top=200').blur();

// Forces the current window to remain on top
window.focus();
-->
</script>

This page will remain as the top window.
<br>A new window will open to Yahoo.com
and be placed underneath the current window.
</body>
</html>

 

 

 



ASP: What's New? | Articles | Script Writers | Database Display | Read/Write
Server Variables | Response Objects | Random Events | Miscellaneous
HTML: Forms | Hyperlinks | Headers | Tables | Hyperlinks | Headers | Text Display
JavaScript: Document Info | Forms | Images | Navigation | Script Writers
CSS: Basics | Page Display | Text Display | Script Writers | Miscellaneous
Maps: Map Script Writers | Bing Maps | Google Maps
Privacy Statement

CodeAve.com is hosted by MyHosting.com
Donate Food Online with a Mouse Click at TheHungerSite.com
Donate Land Online with a Mouse Click at TheRainForestSite.com
© 1999 - 2010 CodeAve.com
All Rights Reserved