Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Close window if not on top

Status
Not open for further replies.

damann

Technical User
Jul 19, 2000
114
US
I would like to have a window close if it's not the window that's on top. So if I have a popup window open up and the user clicks away from that window, I want it to close automatically. Can someone assist me in getting that done using vbscript? Please let me know...
 
Sub window_onblur
window.close
End Sub

Hopefully this will work... "A computer scientist is a person who knows when it is time to hit the computer."

John

johnmc@mvmills.com
 
This doesnt work actually.... I tried it but the window still remains open even when it's not in focus anymore
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top