当用户点击表单上的提交按钮时,我想更改窗口的大小以适应页面
<html>
<head>
<title>PayPal Check out page</title>
</head>
<script>
</script>
<body>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="KUF8GQ9DSJJ28">
<table>
<tr><td><input type="hidden" name="on0" value="Number of Agents">Number of Agents</td></tr><tr><td><select name="os0">
<option value="1 Agent -">1 Agent - $1,280.00 USD</option>
<option value="2 Agents -">2 Agents - $2,560.00 USD</option>
<option value="3 Agents -">3 Agents - $3,840.00 USD</option>
</select> </td></tr>
</table>
<input type="hidden" name="currency_code" value="USD">
<input type="image" src="/img/order.png" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!" onclick="window.resizeTo(1000,1000)">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1" onclick="window.resizeTo(1000,1000)">
</form>
</body>
</html>
这是我想出的代码,但似乎没有奏效
onclick="window.resizeTo(1000,1000)"
有什么建议么