Hey all,
I am trying to Submit a form using the Enter Key. As of now, i have an onClick that takes you to a new window and depending on what you put in the field, will filter certain results. here is the code that I have as of now:
<form name="ask" method="post" style="margin-top:-1px;z-index:2;">
<input type="text" id="q" name="q" size="27" value="" maxlength="2047"/><p align="right">
<input name="submit" type="button" value="Ask Now" vspace="3" class="btn" style="margin-right:4px;" onClick="window.location='askquestion.html?q=' + form.q.value">
</form>
the +form.q.value put what ever is in the field and uses that answer in a new window. I tried using an action, it submits but it does put the answer in the new field to active the filter. It basically gives generic results.
Can anyone help?
Thanks!



Reply With Quote

Bookmarks