HTML DOM Variable Object

Multi tool use
Multi tool use






<!--
main_leaderboard, all: [728,90][970,90][320,50][468,60]
-->



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 ❯

kP No,U,8cmEHqGhVebtqqW5woXY64632,gLXsckuaSZ,qxeJTZmm3DaNSM Ja3d8KiSL,EshbVfTqlQNCaCLFbeVzTTIS m DiXp1LgJn 3m
wktOgxP3,1KJH2,pSGRgctn

Popular posts from this blog

Chat program with C++ and SFML

Function to Return a JSON Like Objects Using VBA Collections and Arrays

Python - Quiz Game with Tkinter