problem with window.close and chrome
Posted
by Patrick
on Stack Overflow
See other posts from Stack Overflow
or by Patrick
Published on 2010-01-09T06:56:50Z
Indexed on
2010/03/25
2:03 UTC
Read the original article
Hit count: 417
JavaScript
|google-chrome
Im trying to close a child window with javascript and in firefox everything works fine but in chrome the window doesnt close
here is what im using
$(document).ready(function() {
if (window.opener && !window.opener.closed)
window.opener.location = "http://www.website.com"
window.close();
});
I tried a suggestion on google, but to no avail.
Anyone having a similar issue or know of a work-around?
© Stack Overflow or respective owner