About Rick Johnson Expertise I consider myself knowledgeable in JavaScript and HTML. I hold BS in computer science and an MS in information systems. I formally managed a group that was responsible for all PCs in the worldwide research center of Kraft Food Inc. located in Glenview, Illinois. The company I currently own designs web pages for local, regional and national businesses.
Many of the questions I have received required some research. This is good because it causes me to expand on my existing knowledge.
Javascript - set window as always on top not working on IE
Expert: Rick Johnson - 2/15/2005
Question I am using IE 6.0.26 and netscape 7.2 and i am creating a window using
window.open('abc.html','win','fullscreen=0,
toolbar=no,location=no,directories=no,status=no,
menubar=no,scrollbars=yes,resizable=no,
alwaysRaised=yes,width=400,height=100');
on an onclick event.
It is creating fine but what i want that it should remain always on top even if user minimises that window on every click.
I m using option alwaysRaised=yes .
it is working fine on netscape but not in IE.
can u help me regarging this.
thanks
neelesh
Answer Neelesh,
A window that is always on top is known as a modal window. Creating modal windows is not straightforward. In fact with Windows XP security feature enabled they become a true pain in the butt.
That said attached is code by Robbie Morris.
I hope this helps,
Rick Johnson
========================== HTML ===========================
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">