Jump to content

A Few Questions About Modeless Windows


Selacius
 Share

Recommended Posts

This may or may not be a javascript problem in its basis but I have a few questions about javascript and its relation to modeless windows.First,How do I via javascript close a modeless window. I am aware that one could simple press the X on the window, but I would like to actually have a button for the user. Second,Is there a way to fix modeless windows so that any links are opened in said window. Example if I put a form into a modeless window, how can I keep it from opening in a new window when the user submits it?

Link to comment
Share on other sites

Just use this:<script type="text/javascript">function closething(){window.close()}</script>with a button that is:<input type="button" value="Close" onclick="closething()">I can't answer the second question, i don't understand.

Link to comment
Share on other sites

Okey, I have read on a few different websites that any links opened from a modeless window, will open in a new window instead of the modeless window. I would like to know if there is a way to solve this issue. If your unsure what a modeless window is, please check this page here:http://www.dynamicdrive.com/dynamicindex8/modelesswin.htm

Link to comment
Share on other sites

Now I have a final question. Why are modeless windows crappy are registering when the page they are displaying is changed? What I mean is if I were to change the content on a page which I previously viewed in a modeless window, then tried to open it again, the old page would still be displayed. How can I fix it so that the newest copy of the page is always displayed?

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
 Share

×
×
  • Create New...