HTML/CSS: <div id='el' style='border:1px solid black; font-size; 12pt;'> ABC </div>
<div id='el' style='border:1px solid black; font-size; 12pt;'> ABC </div>
Finding the element:
var e = document.getElementById("el"); e.innerHTML == "ABC";
var div = document.createElement("div"); div.id = "el"; div.style.border = "1px sold black"; div.style.fontSize = "12pt"; div.innerHTML = " ABC "; X.appendChild(div); // where <X> is the element in which we want to place the above div.
These examples demonstrate basic ES scripting examples
An ECMAScript dynamic table 1 [ View source ]
An ECMAScript dynamic table 2 [ View source ]
An ECMAScript color selector [ View source ]
ECMAScript dynamic element positioning [ View source ]
A ECMAScript drag-and-drop example [ View source ]
An ECMAScript canvas painting example [ View source ]