(如何)可以在新窗口中打开表单提交的结果?

(如何)可以在新窗口中打开表单提交的结果?

问题描述:

我在桌子里有一张小桌子.过帐该表格将创建一个新实体.然后,我希望用户看到该新实体,但应在新窗口中打开该实体,以免丢失原始视图.

I have a small form inside a table. POSTing that form creates a new entity. I then want users to see that new entity, but it should open in a new window so that the original view isn't lost.

(如何)可以在新窗口中打开表单提交的结果?

(How) can I open the result of the form submission in a new window?

<form ... target="windowName">

<form ... target="windowName" onsubmit="window.open(this.action, this.target, '...attributes...');return true;">

...属性...可以包含 mozilla开发人员中心 MSDN

...attributes... can consist of the stuff documented at the mozilla developer center or MSDN