<!DOCTYPE html>
<head>
<base target="_top">
<script type="text/javascript">
function f() {
var refresh = document.getElementById('form');
timer = setTimeout('f()', 1000);
if (timer == 10) {
clearTimeout(timer);
refresh.src = 'New URL';
}
}
</script>
</head>
<body onload="f()">
<p>Complete the form</p>
<form id="form" action="URL" target="_self" method="POST">
<div><input type="text" placeholder="name" required name="Name"></div>
<div><input type="email" placeholder="email" required name="E-mail"></div>
<div><button type="submit">Send</button></div>
</form>
</body>
</html>
based on the above code, I need to do that:
After 10 sec of page load, replace the form section in the page with the "New URL"
For some reason it's not working. Any help would be so much appreciated. Thanks in advance