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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Give focus using VBS

Status
Not open for further replies.

JoePytel

Programmer
Apr 15, 2002
6
0
0
US
Hello,
I am trying to write a script that sends a popup to a user (IE window used for popup) I want to give the popup focus and force the user to click ok. I know in VB you can set modality, and I think there is a focus property, is there anything that can be done in VBS to obtain the same ends?

Thanks
 
try this..
window.showmodaldialog "popupwin.asp",,"dialogWidth=30;dialogHeight=15;center=1;tool=0;status=0;help=0"

though make sure that the popupwin.asp doesn't submit to to itself because it will only result to openning another window.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top