Login | |
|
 |
RE: Check if I'm in the right form - 12/3/2007 11:19:07 PM
|
|
 |
|
| |
TNO
Posts: 1282
Score: 12
Joined: 12/18/2004
From: thenewobjective.com
Status: online
|
There is no way currently to check what your cursor is in, but you can put it where you want it: objIE.Document.getElementByID("USER").focus
_____________________________
To iterate is human, to recurse divine. -- L. Peter Deutsch
|
|
| |
|
|
|
 |
RE: Check if I'm in the right form - 12/4/2007 2:18:37 AM
|
|
 |
|
| |
hamboy
Posts: 94
Score: 6
Joined: 7/11/2005
Status: offline
|
I want something to check that I am on the right webpage. My problem is this, say for example, if you didin't login to gmail.com, then going to gmail.com will bring you to the login page. However, if you were logged on, maybe from another window/session, then going to gmail.com will bring you directly to inbox. My script currrently expects to login, but errors out if going to gmail.com brings you to inbox, not login page. So I was wondering, if there's somethign I can test if an object is there, and will cause true. like if getElementbyTag("USER") is found, set true, then do login, if not, then skip to the rest of the script
|
|
| |
|
|
|
|
|