Click here to Skip to main content
15,895,011 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a code part like

<a href="asda" class="urun_baslik">SOME TEXT </a>
I want that some text with webbrowser control.

I can use that getattribute("classname") and it returns urun_baslik.

So How can i get that SOME TEXT!

UPDATE:
OP found the answer himself and posted as an answer.
Posted
Updated 3-May-11 1:43am
v6

I believe HtmlElement.InnerText should return the text you are looking for.
 
Share this answer
 
You can use innerHtml property. The only thing you have to give some ID for your control

document.getElementById('controlid').innerHTML
 
Share this answer
 
Thanks for ur answers i found it myself.
item.GetAttribute("classname") == "urun_baslik" then item.OuterText helped me.
 
Share this answer
 
Use

document.getElementById('controlid').innerHTML


Might help you.
 
Share this answer
 

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