MarkRobinson
Programmer
I'm looking to use javascript to extract the title tag of the page, assign it to a variable, then put that variable into a hidden field in a form so it can be passed.
It's "Where I came from" application.
Need Help with both the Javascript and the Form.
Sort of like:
---------------------------------
<head>
<title>Original Form</title>
<script>
Take the page title and put it in a variable
</script>
</head>
<body>
<form id="Form1" name="Form1" method="post" action=" <label for="Submit"></label>
<input name= <The Variable> type="hidden" value="title" />
<input type="submit" name="Buy Now" value="Buy Now" id="Buy Now" />
</form>
</body>
</html>
It's "Where I came from" application.
Need Help with both the Javascript and the Form.
Sort of like:
---------------------------------
<head>
<title>Original Form</title>
<script>
Take the page title and put it in a variable
</script>
</head>
<body>
<form id="Form1" name="Form1" method="post" action=" <label for="Submit"></label>
<input name= <The Variable> type="hidden" value="title" />
<input type="submit" name="Buy Now" value="Buy Now" id="Buy Now" />
</form>
</body>
</html>