So as we all know if you click on a submit button that has embedded in it a onClick(windown.open(...))
this opens a new window with all the lovely attributes you specify. However if then proceed to click on the parent window and again click on the 'submit' button without closing the previous popup window, then that same window is overwritten with the new data.
Now I need a way for that window.open()
script to create new windows every time it is clicked. SO in theory I could click the parent "submit" button 2 consecutive times and have 2 different child windows appear.
I'm sure it's trivial but I can't seem to find anything.
Select the Task View icon on the taskbar, or press Alt-Tab on your keyboard to see apps or switch between them. To use two or more apps at a time, grab the top of an app window and drag it to the side. Then choose another app and it'll automatically snap into place.
When you open a page in a new tab or window, the web browser creates a new session. If you open multiple tabs or windows with the same URL, the web browser creates a separate sessionStorage for each tab or window.
Typically the onclick event on the "Yes" or "Ok" button in the modal dialog looks like this: window. returnValue = true; window. close();
Give each window a new window name.
window.open(url, WindowName)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With