Redirect page in javascript.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sva0008
    New Member
    • Apr 2008
    • 19

    Redirect page in javascript.

    Hi,
    How do i redirect page in the javascript function?
    I am using
    Response.redire ct ("LoadDetail_DS .asp");

    but it gives me error :
    'Response' is undefined.

    Thanks
  • hsriat
    Recognized Expert Top Contributor
    • Jan 2008
    • 1653

    #2
    Use window.location

    Comment

    • gits
      Recognized Expert Moderator Expert
      • May 2007
      • 5390

      #3
      yep, you could even use replace() or reload() ... for that purpose ... the link will show you the differences and usage ...

      kind regards

      Comment

      • acoder
        Recognized Expert MVP
        • Nov 2006
        • 16032

        #4
        The Response object is ASP code. Perhaps you got it working in ASP and tried to use the same code for JavaScript. You can also use 301 HTTP redirection.

        Comment

        • sva0008
          New Member
          • Apr 2008
          • 19

          #5
          Thanks it worked for me.
          Regards

          Comment

          Working...