HTML DOM Samp Object
Samp object
Samp object represents the HTML <samp> element.
Access Samp object
You can use getElementById() to access the <samp> element:
var x = document.getElementById("mySamp");
Create a Samp object
You can use the document.createElement() method to create a <samp> element:
var x = document.createElement("SAMP");
Standard Properties and Events
Samp Object Supports StandardsPropertiesandEvents.