Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

Auto submit a form

<form name="yourform" id="yourform" method="POST" action="yourpage.html">
    <input type=hidden name="data" value="yourdata">
    <input type="submit" id="send" name="send" value="Send">
</form>
<script>            
    document.addEventListener("DOMContentLoaded", function(event) {
            document.createElement('form').submit.call(document.getElementById('yourform'));
            });         
</script>
Comment

PREVIOUS NEXT
Code Example
Javascript :: nodejs https server 
Javascript :: javascript token generator 
Javascript :: how to get multiple checkbox value in jquery 
Javascript :: material ui color background 
Javascript :: es6 create array with increasing number 
Javascript :: change alt text javascript 
Javascript :: move element jquery 
Javascript :: convert file to blob javascript 
Javascript :: latin science words 
Javascript :: convert svg to base64 javascript 
Javascript :: deprecation warning: value provided is not in a recognized rfc2822 or iso format. moment construction falls back to js date(), which is not reliable across all browsers and versions 
Javascript :: js random numbers 
Javascript :: addeventlistener on select option 
Javascript :: get file extension node 
Javascript :: set header as json in laravel 
Javascript :: package.json what is private 
Javascript :: rror: btoa is not defined 
Javascript :: basic server on node.js 
Javascript :: how to pause js execution 
Javascript :: ternary operator angular template 
Javascript :: electron mass to amu 
Javascript :: route pass props to component 
Javascript :: click right mouse javascript 
Javascript :: regex for email validation 
Javascript :: check if var is NaN 
Javascript :: typescript read json file 
Javascript :: how to generate random id in javascript 
Javascript :: sortby vue 
Javascript :: discord.js clean content 
Javascript :: get date in javascript 
ADD CONTENT
Topic
Content
Source link
Name
9+9 =