Don’t Reload popup window When main window is reload
April 12, 2009 at 2:19 am | In Js/Ajax | Leave a CommentTags: child window donot reload, Don't Reload popup, Js, Moving from one page to another do not reload popup, Popup not reload, Reload Parent, when Parent window reload child window do not reload
function popupmat()
{
var mylink=’http://lalit241.wordpress.com’
var windowname=’lalit241′
var refocus=true;
var mywin, href;
if (typeof(mylink) == ’string’)
href=mylink;
else
href=mylink.href;
mywin = window.open(”, windowname, ‘width=400,height=200,scrollbars=yes’);
// if we just opened the window
if (
mywin.closed ||
(! mywin.document.URL) ||
(mywin.document.URL.indexOf(“about”) == 0)
)
mywin.location=href;
else if (refocus)
mywin.focus();
return false;
}
Blog at WordPress.com. | Theme: Pool by Borja Fernandez.
Entries and comments feeds.