Solved

Force new Open Window to stay on top ?

Posted on 2000-05-13
4
2,549 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
  • 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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

708 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now