Follow by Email

Sunday, May 12, 2013

Redirecting to a internal webpage in Jquery

Let see how to redirect from a webpage to an internal webpage on a button click event.

Below is the Html code for this

<html xmlns="">
<head id="Head1">

    <script type="text/javascript" src=""></script>
    <script type="text/javascript">

        $(document).ready(function () {
            $("#Button1").click(function () {
                location.href = "test.aspx"


        <input id="Button1" type="button" value="Redirect to a Internal Web page" />