<script type="text/javascript"> var a=111 (function (){ function abc(){var window; return window;} abc() alert('a='+a); var b = 11; alert('b='+b) }()) alert('a='+a) </script>