HTML DOM Variable Object

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP





googletag.cmd.push(function() googletag.display('div-gpt-ad-1422003450156-2'); );



HTML DOM Variable Object



❮ Previous
Next ❯


Variable Object


The Variable object represents an HTML <var> element.



Access a Variable Object


You can access a <var> element by using getElementById():



Example



var x = document.getElementById("myVar");

Try it Yourself »

Create a Variable Object


You can create a <var> element by using the document.createElement() method:



Example



var x = document.createElement("VAR");

Try it Yourself »

Standard Properties and Events


The Variable object supports the standard properties and events.



Related Pages


HTML tutorial: HTML Text Formatting Elements


HTML reference: HTML <var> tag





❮ Previous
Next ❯

Popular posts from this blog

WWE Night of Champions

Poznań

Kaliningrad