javascript - Clicking on form button without an <input>? -


i trying click on "slow download" button on this page, html is

<form action="https://nitroflare.com/view/a71f0994e20f2e0/security-privacy.jpg" method="post">    <button id="slow-download" class="bootstrapbutton" name="gotofreepage">slow download</button> </form> 

where doing

$( document ).ready(function() { function   startfreedownload(){   getelementsbyid('slow-download')[0].submit();​ }; startfreedownload(); }); 

all posts have seen have <input ... > 1 doesn't.

question

can tell me doing wrong?

this solved problem.

function skipid(objid){     var oid = document.getelementbyid(objid);     oid.click(); }  window.onload = function(){     skipid('slow-download'); }; 

Comments

Popular posts from this blog

php - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -