Jump to content


Photo

Back Button


  • Please log in to reply
3 replies to this topic

#1 barkster

barkster
  • Members
  • PipPipPip
  • Advanced Member
  • 194 posts

Posted 10 January 2006 - 08:29 PM

This is probably so easy but how do I create a back button to go to the previous page in php? Thanks

#2 moberemk

moberemk
  • Members
  • PipPipPip
  • Advanced Member
  • 695 posts

Posted 11 January 2006 - 01:24 AM

You actually do it in Javascript.
<input type="button" value="Back" onclick="history.back()">

Disclaimer: No matter how harsh I may be, I'm always IMO only.

#3 barkster

barkster
  • Members
  • PipPipPip
  • Advanced Member
  • 194 posts

Posted 11 January 2006 - 02:17 PM

Thanks, I'll try that, is there a way to do it with a text link also?

#4 moberemk

moberemk
  • Members
  • PipPipPip
  • Advanced Member
  • 695 posts

Posted 11 January 2006 - 03:18 PM

<a href="linkhere" onclick="history.back()">Back</link>

Disclaimer: No matter how harsh I may be, I'm always IMO only.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users