I know that you cannot really have variables in html, but I'm wondering if this is possible. I have searched around and cannot find anything that clearly answers my question. Hopefully someone hear can point me in the right direction. Here's what I have in mind:
<!DOCTYPE html>
<html>
<body>
<input type="text" name="test">
<input type="submit" onclick="myFunction(test)">
<script type="text/javascript">
function myFunction(test)
{
alert("Welcome " + test);
}
</script>
</body>
</html>
Would this work or something like it? Thanks, Sam