The void Operator
The void
operator is used to evaluate an
expression without returning a value. It has the syntax:
void expression
where expression
is the expression to
evaluate. In JavaScript, void
is used to
evaluate a JavaScript expression in a hypertext link without causing
the result to appear in the browser’s address bar. There are
few, if any, such applications for void
in
ActionScript; it is included for the sake of compatibility with
ECMA-262.
Get ActionScript: The Definitive Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.