View Full Version : How to display the popup window always on the top

09-16-2008, 08:16 AM
I have a popup window as below:

function ShowVirtualAvatar()
var avatarURL = "<%=BasePage.AvatarURL%>";
var popup = window.open(avatarURL,"VCCP","toolbar=no,
height=455,bookmarking disabled");

I'm displaying it on the click of an image button. I want this pop up window to be displayed always on the top..ie.even the user navigates through different windows, this popup should always be displayed on the top.

Tried with self.focus(). But this didnt work..

Any idea..how we can achieve it?

Your help appreciated..

Thanks in advace..!!!


09-16-2008, 08:32 AM
You'd need to use a dhtml popup window for this, see http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow.htm

PS: welcome to CF :)

09-16-2008, 10:57 AM
Thank you..!! :)

But in the given example it works only when the parent window is active.
Is there any way that the window is always active irrespective of the parent window?

Thanks again..!!