Hi, I have a textbox for search and a button that redirects to given value of the textbox. It works well except for firefox 3, which ignores the function completely. Any ideas why and how to fix it? I have already tried window.location instead of location.href, but it again works well in all major browsers but firefox.
My code:
<%=Html.TextBox("search", Html.Encode(ViewData["search"])) %>
<input type="button" onclick="location.href='<%= Url.Content("~/Authorized/Accounts/0/1/") %>'+search.value" value="Search" />
EDIT
And here is the generated code:
<input id="search" name="search" type="text" value="" />
<input type="button" onclick="window.location='/Authorized/Accounts/0/1/'+search.value" value="Search" />