Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个要求,我必须提交一个带有 javascript 值的表单。该方法是“POST”类型。
表单提交应该在新的弹出窗口中。当前窗口必须保持不变......
HTML:
<form action="..." method="post" onsubmit="target_popup(this)"> </form>
Javascript:
功能目标弹出(形式){ window.open('', 'formpopup', 'width=400,height=400,resizeable,scrollbars'); form.target = 'formpopup'; }