This is driving me nutz and I'm sure it's an easy solution. My head is fried with other things at the moment. Can someone please assist.
I am tring to get it so when a user enters information in the input field input type "text", pressing the enter key will simulate the input type "image" being pressed.
Current Code:
Code:
<script language="javascript">
function goURL() { myText = document.getElementById("theText").value;
var w=window.open('http://www.afdhome.com/images/products/large/' + myText + ".jpg"); w.focus(); }
</script>
<input type="text" id="theText" size="24">
<input type="image" SRC="/images/wod/images/imagesearch.jpg" border="0" alt="Search For Image" onClick="goURL(); ">
Assistance from the forum is greatly flipping appreciated.
PB
|