window opener location href is null





But I get the error that windo.opener.document is null or not an object.window.opener.document.location.href winOpen Hope this helps DOM Attributes DOM Console DOM Document DOM Elements DOM Events DOM History DOM Location DOM Navigator DOM Screen DOM Style DOM Window.Coding Tip: window.opener.close() will close the source (parent) window. but if you are working on a master page, that has content place holder you gonna have to refresh your page using window.location.href window.location.

href.the javascript error shows that "opener.location is either null or not an object". function closePopupWindow() window.opener.location.reload() window.close() Please do let me know, if you have any doubt. Please provide "Vote" if this would be helpful, and make "Accept Answer" if this would be correct answer.:rose window.opener.document.location.href url This will work both IE and Chrome.

This is because the opener property of windows object is null on devices like iPad or Chrome.For demo purposes only if (ChildWin.closed) ChildWin null else ChildWin.close() //parent.refresh parent. location "/sclient/login.asp"function ReFresh() //window.opener.location.reload() window.opener. location.href window.opener.location.href if window.openernull. Example 5: Change a property of the opener.If you do not set the opener property to null, the window1 object remains, even though its no longer really needed. Home/ASP.NET Forums/General ASP.NET/HTML, CSS and JavaScript/window. opener.location.href is null or not an object resolved.changewindowwindow .open("","ChangePassword","screenX100,screenY100,directories0,location0,menubar0,resizeable1,scrollbars0,status0,toolbar0null) changewindow.openerself changewindow.location.href"changepwd.cfm" change window.focus() else alert 0 Posts :: 185 Stories :: 63 Comments :: 0 Trackbacks. . window.parent window.opener.. I need to "Reload" the main web browser page when I Exit the project, so I tried using this JavaScript code: " location.reload(true)" but is not working.

location.href hi. I am learning how to use window.opener.location.href. Can someone give me an simple example on it?