Properties names are case sensitive. Try innerHTML, instead of innerhtml. On Friday, May 10, 2019 at 2:06:28 PM UTC-3, Colin Jones wrote: > > > > <div data-test="-title&^%^&" class="primary-title"> > PROJECT NAME | SITE NAME > </div> > > var divs = document.getElementsByClassName('primary-title'); > console.log ("got divs", divs[0]); > > var text = divs[0].innerhtml; /* returns undefined */ > > > > I'm trying to extract "PROJECT NAME" and "SITE NAME" from the <div>. > above. > > innerhtml returns "undefined".... > > I'm a nooB so I'm obviously missing something....what ? > > > help ? > >
-- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/greasemonkey-users/3fc19f4e-bf94-4d8d-ac05-b89ca264f8e5%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.