Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: window stay on top


Message #1 by "Rajkishore Dash" <R.DASH@p...> on Tue, 12 Feb 2002 12:07:00 0000
that doesn't solve the problem  - when you focus on a field, the window
iteslf loses focus, so the onblur method runs, returns the focus to the
window, and so you can't type anything in.

-----Original Message-----
From: Phil Sayers [mailto:philipsayers@m...]
Sent: 12 February 2002 16:06
To: javascript
Subject: [javascript] RE: window stay on top


Don't use the body onload.

Use the onBlur Event

onBlur=self.focus()

-----Original Message-----
From: Alex Shiell, ITS, EC, SE [mailto:alex.shiell@s...] 
Sent: Tuesday, February 12, 2002 9:18 AM
To: javascript
Subject: [javascript] RE: window stay on top

there is no easy way of doing this... heres one way:

in the function that opens the pop-up window, assign an on focus event
to
the main window that diverts focus back to the popup window.  Then in
the
popup window, remove this event handler from the onbeforeexit event
handler

e.g.
main window:

var oWin;

function openpopup(){
	oWin = window.open(...);
	window.onfocus = focusonpopup;

}

function focusonpopup(){
	oWin.focus();
}

Actually, having written this I just tried it out, and it only seems to
work
the first few times you click on the opening window... but maybe with a
bit
more work it could be refined



-----Original Message-----
From: Rajkishore Dash [mailto:R.DASH@p...]
Sent: 12 February 2002 12:07
To: javascript
Subject: [javascript] window stay on top


Hi,

Can anybody please tell me how to keep a window stay on top unless
specifically closed ?
at body onload  if  i write self.focus(), The window is not allowing me
to
enter any text fields on the window

Thanks and Regards
Raj
EXT 6146



-------------------------------------------------------------------

The contents of this e-mail are confidential to the ordinary user
of the e-mail address to which it was addressed and may also be
privileged. If you are not the addressee of this e-mail you should
not copy, forward, disclose or otherwise use it or any part of it
in any form whatsoever. If you have received this e-mail in error
please notify us by telephone or e-mail the sender by replying to
this message, and then delete this e-mail and other copies of it
from your computer system. Thank you.

We reserve the right to monitor all e-mail communications through
our network.


$subst('Email.Unsub').

________________________________________________________________________
Scottish Enterprise Network
http://www.scottish-enterprise.com

Headquarters Address & Contact Numbers

150 Broomielaw
5 Atlantic Quay
Glasgow
G2 8LU.
Tel:  +44 (0) 141 248 2700.
Fax:  +44 (0)141 221 3217

 This message is sent in confidence for the addressee only.
It may contain legally privileged information. The contents are not to
be disclosed to anyone other than the addressee. Unauthorised recipients
are requested to preserve this confidentiality and to advise the sender
immediately of any error in transmission.



$subst('Email.Unsub').



________________________________________________________________________
Scottish Enterprise Network
http://www.scottish-enterprise.com

Headquarters Address & Contact Numbers

150 Broomielaw
5 Atlantic Quay
Glasgow
G2 8LU.
Tel:  +44 (0) 141 248 2700.
Fax:  +44 (0)141 221 3217

 This message is sent in confidence for the addressee only.
It may contain legally privileged information. The contents are not to
be disclosed to anyone other than the addressee. Unauthorised recipients
are requested to preserve this confidentiality and to advise the sender
immediately of any error in transmission.



  Return to Index