javascriptのwindow.close()について質問です。
chromeを使用し画面を開いてwindow.close()した場合は問題なく動作するのですが、submitをした後にクローズ処理が動くと開発者モードのコンソールに「scripts may close only the windows that were opened by it」と表示され画面がクローズされません。
何か対処はありますか?
どんな手段でも構いません。
chrome=46.02490.80
javascript
1<script type="text/javascript"> 2function winclose(){ 3window.open(location,'_self').close(); 4} 5</script> 6<form> 7<input type="submit" value="submit"> 8</form> 9<input type="button" value="close" onclick="winclose()">
※submitしたあとcloseすると閉じれません。
以上、よろしくお願い致します

回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2015/11/03 08:16
2015/11/03 09:36
2015/11/03 13:00