i want to be redirected to page B when i click the textbox on page A, please any idea?, can it be done on html or javascript?
Check the below example.
HTML
<html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script> <script> $(function () { $('#txtTest').on('click', function () { window.location = "http://www.aspforums.net/Threads"; }); }); </script> </head> <body> <div> <input name="txtTest" type="text" id="txtTest" /> </div> </body> </html>
Demo
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.