Hi,

How to extract number 2083236893 from  this object

<div class="gwt-Label">2083236893</div> 

with GM ?


In the last few hours I have tested more than 20 examples, visited many 
websites and still no answer.

var x = document.getElementsByClassName("gwt-Label")[0].className;

fails

// var divs = document.getElementsByTagName('div')[0].innerHTML;
// var nrdivs = divs.length;

fails

I gave up XPath since I don't know how to apply XPath for this class, saved 
with firebug

Not sure why do I get 0 for these lines of code

var divs = document.getElementsByTagName('div');
var nrdivs = divs.length;

if web page in question comes with 10+ DIV objects

I feel myself exhausted :(

jack

-- 
You received this message because you are subscribed to the Google Groups 
"greasemonkey-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to greasemonkey-users+unsubscr...@googlegroups.com.
To post to this group, send email to greasemonkey-users@googlegroups.com.
Visit this group at https://groups.google.com/group/greasemonkey-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to