5 Replies - 3257 Views - Last Post: 26 September 2010 - 02:48 PM

#1 shinjie2554  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 16
  • Joined: 28-August 09

Disabling the back button for Opera browser

Posted 16 September 2010 - 04:23 PM

Ive tried all codes that can be found on the net bout disabling the back button on browsers...
But negative with OPERA browser...

Any suggestions thanks...
Is This A Good Question/Topic? 0
  • +

Replies To: Disabling the back button for Opera browser

#2 Dogstopper  Icon User is offline

  • The Ninjaducky
  • member icon



Reputation: 2870
  • View blog
  • Posts: 11,021
  • Joined: 15-July 08

Re: Disabling the back button for Opera browser

Posted 16 September 2010 - 04:25 PM

My question is why would you want to do that? If I was a user and you disabled my back button, I would be peeved about it. Not sure what your intent is either...

Besides, I would think that since PHP runs on the server, it can't do squat about the browser. Just sayin.

This post has been edited by Dogstopper: 16 September 2010 - 04:27 PM

Was This Post Helpful? 0
  • +
  • -

#3 shinjie2554  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 16
  • Joined: 28-August 09

Re: Disabling the back button for Opera browser

Posted 16 September 2010 - 05:16 PM

yes... thanks for the reply...
ahm this must be moved to javascript category....

I have sessions in my codes where it disables the user to go back to the previous page...
This way is working on all browsers but not with Opera...
so maybe I can disable Opera's back button..
Was This Post Helpful? 0
  • +
  • -

#4 CTphpnwb  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 2889
  • View blog
  • Posts: 10,002
  • Joined: 08-August 08

Re: Disabling the back button for Opera browser

Posted 16 September 2010 - 06:06 PM

You need to rethink your design unless your primary goal is to cause users to avoid your site.
Was This Post Helpful? 0
  • +
  • -

#5 JMRKER  Icon User is offline

  • D.I.C Addict

Reputation: 128
  • View blog
  • Posts: 826
  • Joined: 25-October 08

Re: Disabling the back button for Opera browser

Posted 26 September 2010 - 12:13 PM

View PostCTphpnwb, on 16 September 2010 - 05:06 PM, said:

You need to rethink your design unless your primary goal is to cause users to avoid your site.

I tend to agree.
If I get to a site that won't let me back-up
then I leave, probably never to return.
:rolleyes2:
Was This Post Helpful? 0
  • +
  • -

#6 BetaWar  Icon User is online

  • #include "soul.h"
  • member icon

Reputation: 1135
  • View blog
  • Posts: 7,098
  • Joined: 07-September 06

Re: Disabling the back button for Opera browser

Posted 26 September 2010 - 02:48 PM

Here is what I would do in this case.

NOTE - This will increase bandwidth usage!

Step 1 - Disable caching on your site. This qill require the browser to ask the server for the page every time any link is clicked (including back and forward buttons).
Step 2 - Create a session for each user that keeps track of the furthest they have gone
Step 3 - On each page load check the furthest the user has gone. If that is further than the current page is load the page they should be on instead.

That should do it. The key point here is disabling caching, which is also responsible for the increased bandwidth usage.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1