Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

recalling pop-ups

Status
Not open for further replies.

pygmalion3

Technical User
Joined
Dec 28, 2001
Messages
7
Location
US
Is it possible to create a link in one window that will recall an already open pop-up window to the top
-OR-
Is there a way to keep a pop-up at the top while another window is active?

Thanks in advance,
pyg
 
onclick="window.showModalDialog('dialog.htm')"
 
Thanks for the tip. I've tried it, but I can't seem to get the desired effect. It only wants to work in IE, window.close() doesn't want to work, etc. Am I using it correctly?

I was wondering if it's possible to have a window.focus() link refer to the pop-up from another window?
 
Here is the script I use for working with popup windows. Hope it works for you!

<script>
winUsed = false;

function showDescrWin()
{
winUsed = true;
newWin = window.open(&quot;description.html&quot;, &quot;NewOutputWindow&quot;, &quot;status=0, scrollbars=1, resizable=1, width=350, height=250&quot;);
if(navigator.appName==&quot;Netscape&quot;)
{
newWin.resizeTo(&quot;350&quot;,&quot;250&quot;);
}
newWin.focus();
}

function closeDescrWin()
{
if(winUsed && !newWin.closed)
newWin.close();
}
</script>
 
modal works in ie only, it is jscript feature, not javascript's..

try this code in the pop-up:

<body .. onblur=&quot;this.focus()&quot;> Victor
 
I've found that using onBlur and focus() together will typically disable any other frame... ideally I'd like to find a way to focus the window by href or onLoad. Something like windowName.focus() or window.focus(windowName) but am not quite sure how to accomplish this.
Yeah, I'm a bit green with javascript.
I'll try messing around with your script, joeoz, it looks pretty good, but it looks like it'd only work while the main window is open, yes?

Once again, thanks all!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top