This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Question on using showModalDialog  RSS feed

 
Melinda Savoy
Ranch Hand
Posts: 387
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have been asked to change a javascript function whereby we were opening up a pop-up window and then using an html page to refresh the parent window and then close the pop-up window.

However, now we've been asked to use the showModalDialog when opening up the pop-up window but when we try to use the same html page that refreshed the parent window and closed the pop-up window we are getting the following:

1. A third window (like the parent window) is opening up.
2. And the pop-up window does not close.

Here is the javascript in the html that we were using:



Here is my showModalDialog code:



I've googled and found a lot of suggestions but none are working. Any suggestions or direction would be greatly appreciated.

Regards.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!