selenium - Javascript get the value from an h4 Tag -


i trying value lotus of h4 tag code below

    <a id="linksale" class="linkaccess" title="" href="/vp4/home/handlers/operationaccess.ashx?operationid=17285" onclick="javascript:prepareeventonlinksanchor(17285);">      <h4>lotus</h4>      <p class="datesales">du <em><strong>mercredi&nbsp;1 mai</strong>&nbsp;9h</em> au <em><strong>dimanche&nbsp;5 mai</strong>&nbsp;6h</em> </p>      <p class="baseline"></p>      </a>     

to did follow :

var h=document.getelementbyid("17285");

var i=h.getelementsbytagname("h4");

which returned following line :

<h4>lotus</h4> 

what want value lotus converted text.

document.getelementbyid("linksale").getelementsbytagname("h4")[0].innerhtml 

will work


Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -