I'm using a form with submit button in html which opens a new window onclick of submit. Now i want this new window to be closed without user intervention.
i have tried below:
<script type="text/javascript">
var newWin;
function newWindow()
{
alert('in newWindow');
newWin=window.open('http://someurl','_blank');
setTimeout(function(){newWin.close()}, 10);
alert('closed..');
}
</script>
but this does seem to close the new window. It still stays open. Pls help.