471,570 Members | 934 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,570 software developers and data experts.

How to get HTMLInputElement if there is no Id and no name


I try to create an automatic login for the gmx email web page
Unfortunally the Button for login in has no Id and no name in the HTML

//<input type="text" name="id" id="gmx_email" class="m" accesskey="l" />
HTMLInputElement otxtSearchBox1 = (HTMLInputElement) myDoc.all.item("id",
otxtSearchBox1.value = "us**@gmx.de";

//<input type="password" name="p" id="gmx_pw" class="m" />
HTMLInputElement otxtSearchBox2 = (HTMLInputElement) myDoc.all.item("p", 0);
otxtSearchBox2.value = "password";

//<input type="submit" value="login" class="action" />
HTMLInputElement btnLogin = ??? NO ID NO NAME WHAT NOW ?

Can you help me ? Perhaps I can fire a "Enter" to the HTMLDocument, but I
dont know how because Im new to the HTMLDocumentClass & Co Classes.

Feb 4 '06 #1
0 3139

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Matthias HALDIMANN | last post: by
1 post views Thread by nsrajesh via DotNetMonster.com | last post: by
7 posts views Thread by Lo'oris | last post: by
reply views Thread by XIAOLAOHU | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by lumer26 | last post: by
reply views Thread by lumer26 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.