ro6er
Programmer
- Jul 1, 2003
- 76
Hi, this is definitely an easy one, it's just I don't use javascript much. I've trying to get the copy function to work so when someone fills in the form it redirects with the data in the url eg?test=whatever the data is. At the moment it does this: ?test=%20+%20copythis2%20+
Code:
<html>
<head>
<script type="text/javascript">
<!--
function copy()
{
document.one.copythis2.value = document.one.copythis.value
}
function confirmation() {
//var answer = confirm("Are you sure you want to update quantity")
// if (answer){
window.location = "?test= + copythis2 + ";
// }
// else{
//}
}
//-->
</script>
</head>
<body>
<form name="one">
<input type="input" name="copythis" onchange="confirmation()" value="">
</form>
</body>
</html>