PDA

View Full Version : how to call javascript function on image click


dixit_piyush79
01-12-2008, 04:50 AM
hello,
I have a window application where I login in a site which have i login name & password through vb.net
I do all the this to see the name & id of login, password & submit buttonfield from html source.
Now i have problem I have a site where login & password has id & name that i provide frequently. but on submit this is an image & calling javascript fuction so i can not find out id of submit image.
tell how can i find out id of submit & how to pass it in our code.

Please give me faverable response
thanks

Piyush

Nook Schreier
01-21-2008, 03:07 PM
Well, if I understand you correctly, you would look at the page code and find the <input type="image"...> tag. Of course, if it instead uses the javascript submit() command, in which case you would probably want to find the id of the <form> tag.