-
Notifications
You must be signed in to change notification settings - Fork 0
/
form.html
28 lines (27 loc) · 864 Bytes
/
form.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!DOCTYPE html>
<html>
<head>
<title>Write URL on which you want to go</title>
<script>
function foo(){
console.log("foo called");
var form = document.getElementById("myform");
var url = document.getElementById("url").value;
console.log(url);
form.action = url;
console.log(form.action);
form.submit();
}
</script>
</head>
<body>
<form method="POST" id="myform">
Enter url with transfer protocol in below text box<br>
e.g.
url: https://www.wikipedia.org/<br>
url:
<input type="text" id="url">
<input type="button" name="btnSubmit" value="GO!" onclick="foo()">
</form>
</body>
</html>