L
laredotornado
Hi,
I have a very simple form and I would like on Firefox and IE for the
form to submit upon the user pressing enter in the textfield. Right
now, I have
<script type="text/javascript">
function search() {
var search = document.getElementById('Search');
location = "search_response.php?Search=" + escape(search.value);
} // search
</script>
<form name="search" action="javascript:search();" method="get">
<table cellpadding="2" cellspacing="0" border="0" width="100%">
<tr><td class="departmentSidebarTitle" style="height:25px;
padding-left:3px; padding-right:3px;" nowrap>Search Store</td></tr>
<tr><td class="departmentSidebar" width="100%" align="left"><input
type="text" name="Search" id="Search" value=""></td></tr>
</table>
</form>
(this is all within a table cell), but it is not working. However,
there are no JS errors. Any ideas how I can tweak the above to make it
work?
Thanks, -
I have a very simple form and I would like on Firefox and IE for the
form to submit upon the user pressing enter in the textfield. Right
now, I have
<script type="text/javascript">
function search() {
var search = document.getElementById('Search');
location = "search_response.php?Search=" + escape(search.value);
} // search
</script>
<form name="search" action="javascript:search();" method="get">
<table cellpadding="2" cellspacing="0" border="0" width="100%">
<tr><td class="departmentSidebarTitle" style="height:25px;
padding-left:3px; padding-right:3px;" nowrap>Search Store</td></tr>
<tr><td class="departmentSidebar" width="100%" align="left"><input
type="text" name="Search" id="Search" value=""></td></tr>
</table>
</form>
(this is all within a table cell), but it is not working. However,
there are no JS errors. Any ideas how I can tweak the above to make it
work?
Thanks, -