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
Post a Comment