xiownthisplacex Posted April 1, 2012 Share Posted April 1, 2012 So i'm trying to edit a webpage that has this tag that i posted. But, I am having trouble identifying the element. i am using this: webiste code <body id="tinymce" class="mceContentBody " contenteditable="true" spellcheck="false" style="padding-bottom: 50px; overflow-y: hidden; " dir="ltr">......</body> in my javascript function test(){var res = document.getElementById('tinymce');if (res)return true;elsereturn false;}test(); So it returns false and i can't figure out why :/ any help? thanks. Link to comment Share on other sites More sharing options...
thescientist Posted April 1, 2012 Share Posted April 1, 2012 where are calling that JS? Are you doing it after the document has loaded? You should show us where you are calling test() in your page. Link to comment Share on other sites More sharing options...
xiownthisplacex Posted April 1, 2012 Author Share Posted April 1, 2012 Well right now just in the firebug console.. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.