Click here to Skip to main content
15,922,650 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi I Want To Get (invalid username or password) Message From Webbrowser In This Document Code :
HTML
<span xmlns="http://www.w3.org/1999/xhtml" id="c_116" style="color:#d98180;font-family:sans-serif;font-size:11px;white-space:nowrap;">invalid username or password</span>


webBrowser1.Document.GetElementById("c_116") ? How To Get invalid username or password ?
Posted
Updated 8-Mar-15 10:14am
v3

1 solution

Hi,

Try this:
JavaScript
var text = document.getElementById('span_id').innerHTML;
 
Share this answer
 
Comments
nabeghe 9-Mar-15 11:03am    
hivery thanks that working well and show text
[no name] 9-Mar-15 23:56pm    
Glad it worked for you ! :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900