throw Statement (JavaScript)
JavaScript - Internet Explorer 10
Generates an error condition that can be handled by a try...catch...finally statement.
throw exception
Supported in the following document modes: Quirks, Internet Explorer 6 standards, Internet Explorer 7 standards, Internet Explorer 8 standards, Internet Explorer 9 standards, Internet Explorer 10 standards. Also supported in Windows Store apps. See Version Information.