<script> window.onerror = function (error) { alert('Error: ' + error) } </script> <script> var a = () </script>