Solved

Force new Open Window to stay on top ?

Posted on 2000-05-13
4
2,559 Views
Last Modified: 2013-12-25
I have opened a new window using VBScript as follows:

    strOptions = "toolbar=No, location=No, directories=No, "
    strOptions = strOptions & "status=No, menubar=No, scrollbars=No, "
    strOptions = strOptions & "resizable=No, width=800, height=600,"
    strOptions = strOptions & "top=0, left=0"
    newWindow = Window.Open(otherURL, "myNewWindow", strOptions)

I have noticed when I click the other window underneath, the newWindow disappeared into the back and got covered by the other window.  Is there any way of forcing the newWindow to stay on top no matter what I click ??
0
Comment
Question by:tinson
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 

Author Comment

by:tinson
ID: 2807405
Adjusted points from 100 to 200
0
 
LVL 4

Expert Comment

by:chewymon
ID: 2809280
Here is  JavaScript solution.  This goes into the head and body of the page you wish to stay on top.  The number 3000 is the number of milliseconds until the window is refocused; in this case 3 seconds.  You can set it for whatever you want.

<SCRIPT LANGUAGE="JavaScript">
<!-- Hide from older browsers
function setTimer(){
      setTimeout ("window.focus()",3000);}
// end hiding -->
</SCRIPT>

</HEAD>
<BODY onBlur="setTimer()" BGCOLOR="#ffff80">
0
 
LVL 7

Accepted Solution

by:
nettrom earned 200 total points
ID: 2810201
Two possible solutions.  You mention that you use VBScript, so I expect your audience to be IE-only?  Maybe you should open a modal dialog window instead, that way the user will have to acknowledge (/close) the window before access to the other window is possible.

See http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/showmodaldialog.asp

Danny Goodman has written an article about cross-browser compatible modal dialog windows: http://developer.iplanet.com/viewsource/goodman_modal/goodman_modal.html
0
 

Author Comment

by:tinson
ID: 2941899
Comment accepted as answer
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

FAQ pages provide a simple way for you to supply and for customers to find answers to the most common questions about your company. Here are six reasons why your company website should have a FAQ page
Dramatic changes are revolutionizing how we build and use technology. Every company is automating, digitizing, and modernizing operations. We need a better, more connected way to work together as teams so we can harness the insights from our system…
The viewer will learn how to count occurrences of each item in an array.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

690 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question