Form with 2 submit buttons
问题 I have one form with 2 submit buttons. The form generates a URL. The 2 outputs of the form are: It writes a URL to a hidden div which displays when they click the Preview button, and It launches the same URL in a new window when they click the Open button. I am able to write to the hidden DIV, so the Preview function works perfectly. My problem is: I am not able to get the window.open function to work correctly with the Open button. When I click the button, I get "http://www.my_current_domain