Solved

Force new Open Window to stay on top ?

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Jump links not quite lining up 18 65
Asp/Net Validation date Issue 9 52
Blog posts not showing up on Blog page 7 51
Retrieve response header - authorization bearer token 34 88
Problem to be resolved in this article Currently, development of website and web application can be done without writing thousands of lines of programming code by hand. Description This can be done through by using a open source framework such …
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
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.

911 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

16 Experts available now in Live!

Get 1:1 Help Now