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

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

jsf - "PropertyNotWritableException: Illegal Syntax for Set Operation" error when setting value in bean -

arrays - Algorithm to find ideal starting spot in a circle -