can i set the focus to a field in vbscript

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
eg252
Newbie
Posts: 11
Joined: Thu Dec 02, 2004 5:32 pm

can i set the focus to a field in vbscript

Post by eg252 » Mon Dec 20, 2004 4:08 pm

i need to get into a specific field on an internet explorer page. can i set the focus to a field on the page using vbscript.

User avatar
support
Automation Wizard
Posts: 1450
Joined: Sat Oct 19, 2002 4:38 pm
Location: London
Contact:

Post by support » Mon Dec 20, 2004 10:03 pm

See these tips:

http://www.mjtnet.com/scripts.hts?display+77
http://www.mjtnet.com/scripts.hts?display+127

Shows you how to navigate to a page with IE. You can then either focus IE and Press TAB sufficient times to get to the field to give it keyboard focus, or populate the fields directly as shown in the second example.
MJT Net Support
[email protected]

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts