Using hyperlink as back button

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mike P

    Using hyperlink as back button

    I need to use a hyperlink as a back button, using
    javascript:hist ory.go(-1). But the ASP.NET hyperlink control doesn't
    have an onClick event, and the HTML anchor tag requires a href.

    How can I use the javascript to go back a page using a hyperlink?



    *** Sent via Developersdex http://www.developersdex.com ***
  • Kevin Spencer

    #2
    Re: Using hyperlink as back button

    Use an HTML hyperlink. If you need to load it dynamically, you can put it
    into a LiteralControl, panel, or whatever Control you like.

    --
    HTH,

    Kevin Spencer
    Chicken Salad Surgeon
    Microsoft MVP

    "Mike P" <mike.parr@gmai l.comwrote in message
    news:eZZrU1$YIH A.4028@TK2MSFTN GP06.phx.gbl...
    >I need to use a hyperlink as a back button, using
    javascript:hist ory.go(-1). But the ASP.NET hyperlink control doesn't
    have an onClick event, and the HTML anchor tag requires a href.
    >
    How can I use the javascript to go back a page using a hyperlink?
    >
    >
    >
    *** Sent via Developersdex http://www.developersdex.com ***

    Comment

    • =?Utf-8?B?TWlzYmFoIEFyZWZpbg==?=

      #3
      Re: Using hyperlink as back button

      try

      navigateurl="ja vascript:histor y.go(-1);" />


      --
      Misbah Arefin



      "Kevin Spencer" wrote:
      Use an HTML hyperlink. If you need to load it dynamically, you can put it
      into a LiteralControl, panel, or whatever Control you like.
      >
      --
      HTH,
      >
      Kevin Spencer
      Chicken Salad Surgeon
      Microsoft MVP
      >
      "Mike P" <mike.parr@gmai l.comwrote in message
      news:eZZrU1$YIH A.4028@TK2MSFTN GP06.phx.gbl...
      I need to use a hyperlink as a back button, using
      javascript:hist ory.go(-1). But the ASP.NET hyperlink control doesn't
      have an onClick event, and the HTML anchor tag requires a href.

      How can I use the javascript to go back a page using a hyperlink?



      *** Sent via Developersdex http://www.developersdex.com ***
      >
      >
      >

      Comment

      Working...