48
rated 0 times
[
54]
[
6]
/ answers: 1 / hits: 73655
/ 15 Years ago, sat, january 9, 2010, 12:00:00
I'm trying to close a child window with JavaScript, and in Firefox everything works fine but in Chrome the window doesn't close.
Here is what I'm 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?
More From » google-chrome