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

HTML DOM Script defer Property

Script defer Property

Script Object Reference Script Object

Example

Check whether the script is executed when the page has finished parsing:

var x = document.getElementById("myScript").defer

x The output is:

true

Try it »


Definition and Usage

The defer property sets or returns whether a script is executed when the page has finished parsing.

This property reflects