![]() |
![]() |
![]() |
|||||
![]() |
![]() |
![]() |
![]() |
![]() |
|||
| Welcome
to Tech Support Forum home to more then 136,000 problems solved. Issues
have included: Spyware, Malware, Virus Issues, Windows, Microsoft,
Linux, Networking, Security, Hardware, and Gaming Getting your
problem solved is as easy as: 1. Registering for a free account 2. Asking your question 3. Receiving an answer Registered members: * See fewer ads. * And much more..
|
| Want to know how to post a question? click here | Having problems with spyware and pop-ups? First Steps |
|
|||||||
| Web Design & Programming Discussion of web design, and server-side & client-side scripting |
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) |
|
Registered User
Join Date: Apr 2009
Posts: 23
OS: windows xp
|
Double click browser-back button behaviour in IE
Hi,
I am using a window.localtion redirect in Javascript to convert to SEO urls in an existing site. I didnt make the website from the beginning, so I'm using javascript to dynamically redirect pages to the SEO pages in cooperation with mod_rewrite: 2 examples: {if $uri == '/index.php?id=6'} <script type="text/javascript">window.location.href="products6.htm"</script>; **/if} OR {if $uri == '/index.php?id=3'} <script type="text/javascript">window.location.href="home3.htm"</script>; **/if} $uri is the old url. If I want to go back from products6.htm to home3.htm Then I have to click 2 times to go back a previous page. This only occurs in IE, in firefox and Safari, it works fine. Doesn anyone know a fix for this? |
|
|
|
| Important Information |
|
Join the #1 Tech Support Forum Today - It's Totally Free!
TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free. Join TechSupportforum.com Today - Click Here |
|
|
#3 (permalink) |
|
Design Team Member
Join Date: Jul 2007
Location: Coventry, UK
Posts: 1,884
OS: Vista, various linux distros
|
Re: Double click browser-back button behaviour in IE
Hey, i've never seen a single way around this. Mainly because you have a middleman style page, is there any way to consolidate the pages into one?
Either that or checking the referring url to see if it was the referred to page: Code:
<? if($_SERVER['HTTP_REFERER']=="http://www.whatever.com/products6.htm")** //go to the previous page... } ?> Cheers, Jamey |
|
|
|
|
|
#4 (permalink) | ||
|
Registered User
Join Date: Apr 2009
Posts: 23
OS: windows xp
|
Re: Double click browser-back button behaviour in IE
Quote:
That is too much code for nothing. I thought there was a fix for it. I tried the following: <meta http-equiv="refresh" content="0;url='producten6.htm'" /> This solves the doubleclick problem, only, something else occurs what is not acceptable. It redirects one time, but after 1 second it refreshes. Check it out here: http://www.exclusieve-babykleding.nl/producten6.htm Cleck on any other link and then click back, you know what I mean. I think I have to use php header location. Quote:
Last edited by dannyman1234; 06-10-2009 at 07:18 PM. |
||
|
|
|
|
|
#5 (permalink) | |
|
Registered User
|
Re: Double click browser-back button behaviour in IE
Quote:
window.location.href will work in IE4 +, FF1 +, and Opera 9 +.
__________________
Kieran C |
|
|
|
|
![]() |
| Thread Tools | |
|
|