This is a discussion on "Go back without using javascript" within the JavaScript Forum section. This forum, and the thread "Go back without using javascript are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Go back without using javascript
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Go back without using javascript
Hi all
As known to go back we use :
Thanks in Advance |
|
|
|
#2
|
||||
|
||||
|
Re: Go back without using javascript
I would use the big back button at the top of your browser....
Seriously though, I do not think there is a way to go back in your browser history without some sort of scripting.
__________________
WelshStew If you think I've helped, click the "Thanks" tierney rides tboard - uk site | xtreme wales - extreme clothing WebForumz - facebook | LinkedIn
Last Blog Entry: Phorm approved for UK rollout (Sep 17th, 2008)
|
|
#3
|
|||
|
|||
|
Re: Go back without using javascript
HTML is static!
COMPLETELY STATIC, DEAD, INACTIVE..... HyperText Markup Language.... It FORMATS text and nothing else....!!! </outburst>
Last Blog Entry: 10 Reasons Why My Laptop Is Better Than Your Girlfriend (Dec 15th, 2007)
|
|
#4
|
|||
|
|||
|
Re: Go back without using javascript
Quote:
To OP ... no ... without JS or using the browsers' back button or right-click on the page and select Back or the ALT + left arrow, there is no way of going back to the previous page. |
|
#5
|
|||
|
|||
|
Re: Go back without using javascript
Don't try to build a complete user interface for your site. That's what a browser is for!
Let them use the back button. |
|
#6
|
|||
|
|||
|
Re: Go back without using javascript
Yeah, that you can't do this with HTML
Last Blog Entry: 10 Reasons Why My Laptop Is Better Than Your Girlfriend (Dec 15th, 2007)
|
|
#7
|
||||
|
||||
|
Re: Go back without using javascript
haha... Good answer Jan!!!
__________________
Marc Staff Manager - Webforumz.com Want to be a moderator? PM me. |
|
#8
|
||||
|
||||
|
Re: Go back without using javascript
On a serious note
Could a spot of PHP and the use of $_SERVER['HTTP_REFERER'] be put to use? Something like
Last Blog Entry: The Google Misconception (Feb 3rd, 2008)
|
|
#9
|
||||
|
||||
|
Re: Go back without using javascript
Yes, you can do that and it will work.
__________________
Marc Staff Manager - Webforumz.com Want to be a moderator? PM me. |
|
#10
|
|||
|
|||
|
Re: Go back without using javascript
Doesn't work for me...
Last Blog Entry: Windows Vista vs. Mac Leopard (Nov 4th, 2007)
|
|
#11
|
|||
|
|||
|
Re: Go back without using javascript
It works fine for me. Are you sure that your server supports the HTTP_REFERRER superglobal?
Or maybe you just made a direct access to the page and there is no referrer? Check the source and see what it has in the link. |
|
#12
|
||||
|
||||
|
Re: Go back without using javascript
It also works for me.
__________________
Marc Staff Manager - Webforumz.com Want to be a moderator? PM me. |
|
#13
|
|||
|
|||
|
Re: Go back without using javascript
Oh, sorry guys! It's disabled on my server...
Last Blog Entry: Windows Vista vs. Mac Leopard (Nov 4th, 2007)
|
|
#14
|
||||
|
||||
|
Re: Go back without using javascript
Sort of defeats the purpose though because a lot of browsers and servers don't set the HTTP_REFERER variable, not mention the fact that because it's a HTTP header, it can be modified.
Better off sticking with javascript (with a fallback to the HTTP header) or hard coding the links.
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| opera, back button & javascript interval | paza | JavaScript Forum | 4 | May 23rd, 2008 21:19 |
| Back buton - several pages back - in HTML ? | attila001122 | Web Page Design | 1 | Dec 9th, 2007 15:51 |
| Post back to default page when generate javascript deepgrid in asp.net | zacklau | JavaScript Forum | 1 | Oct 2nd, 2007 10:18 |
| Problem with Javascript Back Button in Firefox | gorikain | JavaScript Forum | 4 | Jun 25th, 2007 22:23 |