Access DOM with code

Access DOM with code

Postby Pfigueredo » Thu Mar 03, 2016 9:59 pm

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.
Pfigueredo
 
Posts: 2
Joined: Sat Feb 27, 2016 7:34 pm

Re: Access DOM with code

Postby admin » Thu Mar 17, 2016 11:39 am

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
admin
Site Admin
 
Posts: 3406
Joined: Mon Jun 15, 2009 9:53 am
nuBuilder Version: 4.5


Return to Custom Code



cron