Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

Access DOM with code

Post Reply
Pfigueredo
Posts: 2
Joined: Sat Feb 27, 2016 11:04 am

Access DOM with code

Unread post 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.
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Access DOM with code

Unread post 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
Post Reply