Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => SMF Feedback and Discussion => Topic started by: vinzbomb on February 18, 2012, 03:32:02 PM

Title: What is the right action url for a back button ? with php urls !
Post by: vinzbomb on February 18, 2012, 03:32:02 PM
hi,

as always i got stupid questions, for all the pro's here on smf, anyways !!! ;D

i created a button, and need the button goes back to last visited page, and so on.

What is the correct url i got to use because i cannot find any example on the forum because there is no back buttons

thanks everybody !!!! ;)
Title: Re: What is the right action url for a back button ? with php urls !
Post by: Antechinus on February 18, 2012, 04:13:59 PM
The reason you don't see that on any forum is because it's something the browser already handles. Why would you need anything else?
Title: Re: What is the right action url for a back button ? with php urls !
Post by: 青山 素子 on February 18, 2012, 04:48:40 PM
If you really need an in-page UI element to do the same as the browser's back button feature, you want to run the Javascript "history.go(-1)". That, or rely on the fact that almost everyone knows how to go back a page using their browser's functionality.
Title: Re: What is the right action url for a back button ? with php urls !
Post by: vinzbomb on February 18, 2012, 05:47:24 PM
Quote from: 青山 素子 on February 18, 2012, 04:48:40 PM
If you really need an in-page UI element to do the same as the browser's back button feature, you want to run the Javascript "history.go(-1)". That, or rely on the fact that almost everyone knows how to go back a page using their browser's functionality.

yes you make a point !!!

thanks