<!DOCTYPE html>
<html>
<head>	
	<script type="text/javascript">
			if (typeof(Unity) === 'undefined') {
				Unity = {
					call: function(msg) {
						var iframe = document.createElement('IFRAME');
						iframe.setAttribute('src', 'unity:' + msg);
						document.documentElement.appendChild(iframe);
						document.documentElement.removeChild(iframe);
					}
				};
			}
	</script>
</head>
<body>
<p><a href="javascript:void(0)" onclick="Unity.call('CloseWebView');">[Send Message!]</a></p>
</body>
</html>
<!DOCTYPE html>
<html>
<head>	
	<style>
            p
            {
                font-size:      40px;
            }
			
			div	
			{
                font-size:      40px;
            }			
	</style>
	<script type="text/javascript">
			if (typeof(Unity) === 'undefined') {
				Unity = {
					call: function(msg) {
						var iframe = document.createElement('IFRAME');
						iframe.setAttribute('src', 'unity:' + msg);
						document.documentElement.appendChild(iframe);
						document.documentElement.removeChild(iframe);
					}
				};
			}

		window.onerror = function(e) {
			document.getElementById('prompt').innerHTML = e.toString();
		}
	</script>
</head>
<body>
<p><a href="javascript:void(0)" onclick="Unity.call('CloseWebView');">[Send Message!]</a></p>
<div id='prompt'>
    
</div>
</body>
</html>
Debug prompt in close test
Debug prompt in close test
