Jump to content

opening a new window


Guest niks27

Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...