This is a follow-up question of this question of mine.
I need to open a new Window on button click, and pass data to the new page.
One way is to have a form constituting hidden
fields (containing the data I want to pass to the new page) and submit this form using JS in the click listener of the button.
So far, this seems smooth. I will assign the action
attribute of <form>
a value of the URL of the page I want to open on button click. Then I will submit this form through JS in the click listener of the button.
The challenge/question-I-am-asking-here is that how do I open the new page (the page which will open on form submit) in a new window?