我正在尝试在下面的联系表单的提交按钮上打开一个弹出窗口是代码
<form id="contact" name="contact" method="post" action="mail2.php" onsubmit="return valid();">
<label>Name :</label>
<input name="name" type="text" id="name" class="contact-input-box" />
<label>Contact No. :</label>
<input name="telephone" type="text" id="telephone" class="contact-input-box" />
<label>Email :</label>
<input name="email" type="text" id="email" class="contact-input-box" /><br class="clearBoth" />
<label>Gender :</label>
<span>Mail</span> <input type="radio" name="gender" value="male">
<span>Femail</span> <input type="radio" name="gender" value="female" /> <br class="clearBoth" />
<label>product :</label>
<select name="product" class="dropdown" id="product">
<option>Product</option>
<option value="cd">CD</option>
<option value="dvd">DVD</option>
</select> <br class="clearBoth" />
<label>Comment :</label>
<textarea name="comment" id="comment" class="contact-input-box1"></textarea><br class="clearBoth" />
<p id="button1"></p>
<label> </label>
<input name="button" type="submit" id="button" title="Submit" value="Submit" onclick="myFunction()" />
</form>
但我无法打开弹出窗口。表格工作正常。目前它在thankyou.html页面上。我需要在弹出框中打开感谢信息。