可以使用< form>不要打开一个新窗口 [英] is it possilble that a <form> dont open a new window

查看:94
本文介绍了可以使用< form>不要打开一个新窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我发送一个< form>他没有打开一个新窗口。是否有人知道我如何制作这个白色的javascript?


Greets Wouter

Hi,

I try to make when i send a <form> that he dont open a new window. Is there
someone who know how i can make this whit javascript ?

Greets Wouter

推荐答案

Wouter写道:



Wouter wrote:

Hi,
当我发送< form>时,我尝试制作他没有打开一个新窗口。是否有人知道如何制作这个白色的javascript?
I try to make when i send a <form> that he dont open a new window. Is there
someone who know how i can make this whit javascript ?




一般来说,表单在提交时不会打开新窗口,如果它确实

然后你有一个目标表单开始标记中的属性或

" target"在脚本中定义的属性 - 只需删除它,然后在当前窗口中提交表格

,如你所愿。

HTH,

是的。



Generally a form does not open a new window when submitted, if it does
then you either have a "target" attribute in your form opening tag or a
"target" property defined in scripting - just remove it and the form
will be submitted in the current window, as you wish.
HTH,
Yep.


Wouter写道:
Wouter wrote:
我发送一个< form>他没有打开一个新窗口。


表格的默认行为是提交到同一个窗口。

是否有人知道如何制作这个白色的javascript?
I try to make when i send a <form> that he dont open a new window.
The default behavior of forms is to submit to the same window.
Is there someone who know how i can make this whit javascript ?




您不需要JavaScript来实现默认设置。你必须采取

显式步骤来改变默认行为。


-

David Dorward< http: //blog.dorward.me.uk/> < http://dorward.me.uk/>

Home是〜/ .bashrc的地方



You don''t need JavaScript to make the default happen. You have to take
explicit steps to change the behavior from the default.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is


>
一般来说,表单在提交时不会打开新窗口,如果确实如此,那么你要么有一个目标。表单开头标记中的属性或
target在脚本中定义的属性 - 只需删除它,表格将在当前窗口中提交,如您所愿。
Generally a form does not open a new window when submitted, if it does
then you either have a "target" attribute in your form opening tag or a
"target" property defined in scripting - just remove it and the form will
be submitted in the current window, as you wish.




对不起,我忘了说我需要目标,因为表格用于登录

论坛


Greets Wouter



Sorry i forgot to say i need a target because the form is using for login a
forum

Greets Wouter


这篇关于可以使用&lt; form&gt;不要打开一个新窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆