...

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



ke.neelima
09-16-2008, 07:16 AM
I have a popup window as below:

function ShowVirtualAvatar()
{
var avatarURL = "<%=BasePage.AvatarURL%>";
var popup = window.open(avatarURL,"VCCP","toolbar=no,
location=no,directories=no,status=no,menubar=no,
scrollbars=no,resizable=no,left=590,top=200,width=277,
height=455,bookmarking disabled");
popup.focus();
}

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..!!!

-Neelima

abduraooft
09-16-2008, 07: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 :)

ke.neelima
09-16-2008, 09: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..!!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum