Page 1 of 1

javascript closing window

Posted: Wed Oct 03, 2012 1:07 pm
by Eusebe
Hi,

Anyone able to explain why the following code works (current tab closed after clicking on the button) with Iron but not with a Chrome Portable I just downloaded ?

Code: Select all

<body>
    <input type="button" onclick="javascript:parent.close();" value="Close" />
</body>
</html>
I suggest this is because of a particular configuration, but I don't find which one.

Thanks a lot !