polyhedron
polyhedron

Reputation: 1590

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

Upvotes: 4

Views: 9717

Answers (2)

scunliffe
scunliffe

Reputation: 63588

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

Upvotes: 9

Anubis
Anubis

Reputation: 2624

Open development tool and set in watch window the following

$('form').submit();

(you need to reference jquery library on page)

Upvotes: 10

Related Questions