THE BEST WEB DEVELOPER SITE

HTML DOM S Object


S Object

The S object represents an HTML <s> element.

Access a S Object

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

Example

var x = document.getElementById("myS");
Try it Yourself »

Create a S Object

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

Example

var x = document.createElement("S");
Try it Yourself »

Standard Properties and Events

The S object also supports the standard properties and events.


Related Pages

HTML tutorial: HTML Text Formatting

HTML reference: HTML <s> tag

JavaScript reference: HTML DOM Del Object