<html> <head> <title>IE 9 Test</title> <script type="text/javascript"> function doThis() { var i; i = "Terry alert(i); } </script> </head> <body> <h1>Head of this document</h1> <button type="button" onclick="doThis()">Click me</button> </body> </html>