Close Child Window from Parent onblur using Javascript
===

I tried lot but not able to fix the situation.
I have a code which returns some other page (Google) in popup (Child) window.

I cannot write any code in child window and i have to everything from parent. I am trying to bind the onblur event from parent to child window so that child window should be closed once it lost the focus. 

However, child window splash for a micro second and closes automatically.

I cant use the JQuery also in the environment i am working.

Please find below sample code :

	<html>
	<head>
	</head>

	<body>
	<input type="button" value="Open Google" onclick="OpenWindow()" />

	<script type="text/javascript">

	function OpenWindow()
	{
		var url="http://www.google.com";

		var newWin=window.open(url, 'Popup','height=500,width=600,left=100,top=100,resizable=yes,scrollbars=no,toolbar=no,status=no');
		newWin.focus();
		newWin.onblur =  newWin.close();	
	}
	</script>

	</body>
	</html>

