Welcome to WebmasterWorld Guest from 54.146.246.4

Forum Moderators: open

Message Too Old, No Replies

change url on keypress within *.aspx page

     

rcshield

11:40 pm on Aug 11, 2008 (gmt 0)

5+ Year Member



How can I re-direct a page to a different URL by pressing the enter key in a form's text field on a ASPX page?

bollysite

6:56 am on Aug 18, 2008 (gmt 0)

5+ Year Member




<form action="#" onsubmit="url = document.getElementById('textField').value;document.location.href=url">
...