Page 1 of 1

Access DOM with code

Posted: Thu Mar 03, 2016 1:29 pm
by Pfigueredo
Hi, sorry, my english is not ggod. Please would someone explain me why in a form in "Extra Action Buttons" tab do not running code like this "var c = document.getElementById("myelement") ("myelement" is valid id of tag);" but something like this "alert ("my alert")" do. Thanks a lot.

Re: Access DOM with code

Posted: Thu Mar 17, 2016 3:09 am
by admin
Pfigueredo,

What are you tring to do with var c = document.getElementById("myelement")?

All you have done is set an object to a variable, unlike alert ("my alert" which displays a message to the user?

Steven