开发者

Is there a way to submit in Chrome Browser without Button?

I want to force a submit for debugging purposes. Is there开发者_运维知识库 a way to submit a form in Chrome without javascript or jquery through developer tools?

Thanks, Matt


Open development tool and set in watch window the following

$('form').submit();

(you need to reference jquery library on page)


In plain JavaScript, type this in the location/address bar (or in the console without the protocol prefix)

javascript:document.forms[indexOrName].submit();

e.g.

javascript:document.forms[0].submit();//first form
javascript:document.forms['myForm'].submit();//form by name
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜