| Subcribe via RSS


window.opener.location.reload()

January 8th, 2008 | No Comments | Posted in javascript by dreamluverz


I got main window and a pop up and wanted to reload the main window through the popup with window.opener.reload(). I got an error saying IT’S NOT A FUNCTION. I checked the code several times of other possible issues that may have caused it. I know I got it right ‘coz i’ve done it before but why I can’t do it again?!?! I tried checking google for opener.reload(). But still I can’t get it right. This time I tried the keyword reload() property in javascript. Damn!!! I missed one property, the location. It should have been window.opener.location.reload().

Now keep that in mind :P

Tags: ,