Posts Tagged ‘javascript’

Pop-unders

09:13pm on Sunday, June 8th, 2008 | No Comments »

Let me start by saying I hate pop-unders. They clutter up peoples desktops and generally annoy users. Unfortunately they are one of the most effective forms of web-based advertising at the moment, although I’m not sure why. I’ve had a few questions over recent months about how to implement pop-unders so here it is.

Pop-ups are easy, you just call the javascript function window.open with the required parameters. To turn a pop-up into a pop-under is simple. On the page that’s loaded in the pop-up, simply add the following snippet…

<script type="text/javascript">
	self.blur();
</script>

That will cause the popped-up window to sink behind whatever opened it.

Note that I accept no responsibility for the complaints you’ll get from users if you start doing this. You’re on your own!

 
The Stut.net blog is proudly powered by WordPress | Entries (RSS) and Comments (RSS)
Generated in 0.5544 seconds. All content copyright © Stuart Dallas unless otherwise stated.
Design and content licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 2.0 License