Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML DOM Link charset property

Link charset property

Link Object Reference Link Object


Definition and Usage

The charset property sets or returns the character encoding of the linked document.

Syntax

Set the charset property:

linkObject.charset="

character-set

"

Return the charset property:

linkObject.charset


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the charset property.


Example

Example

Display the character encoding of the linked document:

Runoob Tutorial(runoob.com)

Try it »


Link Object Reference Link Object