Export (0) Print
Expand All

void Operator (JavaScript)

Prevents an expression from returning a value.

void expression 

The expression argument is any valid JavaScript expression.

The void operator evaluates its expression, and returns undefined. It is most useful in situations where you want an expression evaluated but do not want the results visible to the remainder of the script.

Supported in the following document modes: Quirks, Internet Explorer 6 standards, Internet Explorer 7 standards, Internet Explorer 8 standards, Internet Explorer 9 standards. See Version Information.

Show:
© 2015 Microsoft