my question is can i change that from Get to Post method. with a script as document.getElementById.
I have already tried it I get undefined as an answer
my index.html
<!doctype html>
<html><head>
<meta charset="UTF-8">
<title>Untitled Document</title>
</head>
<body>
<form action="display.html" method="get">
<input type="text" name="serialNumber" value="12345">
<input type="submit" value="Submit">
</form>
<div id="tp">
<div id="MBU"></div>
</div>
</body>
</html>
my display.html
<!doctype html>
<html><head>
<meta charset="UTF-8">
<title>Untitled Document</title>
</head>
<body>
<input name="Afdeling" id="MBU" class="form-control m-b action" required="">
<script>
function processForm(){
var parameters = location.search.substring(1).split("&");
var temp = parameters[0].split("=");
l = unescape(temp[1]);
document.getElementById("MBU").value = l;
}
processForm();
</script>
</body>
</html>