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

HTML DOM Script async Property

Script async Property

Script Object Reference Script Object

Example

Check whether the script is executed asynchronously (as soon as it is available):

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

x The output is:

true

Try it »


Definition and Usage

The async property sets or returns whether a script is executed asynchronously (as soon as it is available).

This property reflects