+ 2

How can i autosubmit a from after 4 sec of page load

i want to autosubmit some data after the 4 or5 sec of the page load the autosubmit process by javascript or php please say me the code

23rd May 2018, 8:48 PM
KRISSH KUMAR
KRISSH KUMAR - avatar
1 ответ
+ 1
Hi. You can add this code to your page: document.addEventListener('DOMContentLoaded', () => { setTimeout( () => { // With jquery $('#form').submit(); }, 5000) })
23rd May 2018, 9:28 PM
Alex Yorke