Hi there Sitepoint

I have a page where users link to content which appears in smaller pop up windows.

In my current set up when a user calls a pop up window and then clicks on the (original) browser window behind it, the pop up obviously dissappears behind. If the user then calls another pop up the content of the pop up changes but stays hidden behind the original window.

Is there anyway of bringing this forward to the front?

I use this script to generate pop ups:

function windowOpener() {

calling the function using this:

<a href="content.html" target="win" onclick="windowOpener()">

Any help would be much appreciated!