Guest niks27 Posted January 30, 2007 Share Posted January 30, 2007 opening a new window and passing a variable values to that window.Also disabling the old window until and unless the new window is closed.I know how to open the new window.but i want the current window to be inactive until and unless the new window is closed.after closing the new window it passes some variable to old window. depending upon that the result on old window will be refreshed. Link to comment Share on other sites More sharing options...
jesh Posted January 30, 2007 Share Posted January 30, 2007 To keep the child window (the popup) open and to disallow interacting with any other windows, you might try adding an event handler to the blur event of the window. Something like this: window.onblur = function() { window.focus(); } To pass information to the parent window, you can get a reference to the parent by using window.opener. For more information about that, look here:http://www.w3schools.com/htmldom/prop_win_opener.asp Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now