Re: [Pro. PHP Dev.] Disable refresh button on browser

616 views
Skip to first unread message
Message has been deleted

vishal bhandare

unread,
Dec 8, 2010, 4:15:35 AM12/8/10
to professi...@googlegroups.com
http://www.eggheadcafe.com/community/aspnet/3/10014143/disable-back-button-of-browser-or-expire-page.aspx

On Tue, Dec 7, 2010 at 3:31 PM, priya <priya....@gmail.com> wrote:
hiee..
   can anyone tell me how to disable back button on Browser using php
or javascript. or can we write any specific code to stop functionality
of back button for a specific application

--
This group is managed and maintained by the development staff at 360 PSG. An enterprise application development company utilizing open-source technologies for todays small-to-medium size businesses.

For information or project assistance please visit :
http://www.360psg.com

You received this message because you are subscribed to the Google Groups "Professional PHP Developers" group.
To post to this group, send email to Professi...@googlegroups.com
To unsubscribe from this group, send email to Professional-P...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/Professional-PHP

Message has been deleted

Jack Timmons

unread,
Dec 8, 2010, 6:46:51 AM12/8/10
to professi...@googlegroups.com
On Tue, Dec 7, 2010 at 4:01 AM, priya <priya....@gmail.com> wrote:
> hiee..
>    can anyone tell me how to disable back button on Browser using php
> or javascript. or can we write any specific code to stop functionality
> of back button for a specific application

Code your websites so "Back" and "Refresh" doesn't break it.

There's no way you can stop them from refreshing or clicking back.
Javascript examples are just wishful thinking.

--
Jack Timmons
@_Codeacula
Trollfree: 8503290326

Robert Gonzalez

unread,
Dec 8, 2010, 10:00:42 AM12/8/10
to professi...@googlegroups.com
Why in the world would you want to take over the natural functionality of someone's software? Don't do this. It's intrusive, unintuitive and just dirty.

Do like Jack suggested and code your application so that it works no matter what the user does in THEIR browser.

On Tue, Dec 7, 2010 at 2:01 AM, priya <priya....@gmail.com> wrote:
hiee..
   can anyone tell me how to disable back button on Browser using php
or javascript. or can we write any specific code to stop functionality
of back button for a specific application

Ovidiu Alexa

unread,
Dec 8, 2010, 10:28:57 AM12/8/10
to professi...@googlegroups.com
ya, you could try to use some ajax... no back buttons there :D but the refresh is just out of reach :(

-- Jeff Daniels
Message has been deleted

Robert Gonzalez

unread,
Dec 8, 2010, 11:41:43 PM12/8/10
to professi...@googlegroups.com
No. 

On Wed, Dec 8, 2010 at 8:36 PM, priyanka dhukte <priya....@gmail.com> wrote:

thnx,,, but can any1 tel me,,, can we prevent functionality of back button in d same instead of coding website??

chirag kalani

unread,
Dec 9, 2010, 12:26:18 AM12/9/10
to Professional PHP Developers
Do not try to stop back button...
but right the restriction and redirection code in logged in page so
that when anybody click on back button after logout he will
automatically redirect the page watever we want

Or we can put javascript too..

oknoorap

unread,
Dec 9, 2010, 6:37:28 AM12/9/10
to Professional PHP Developers
There is impossible

vishal bhandare

unread,
Dec 13, 2010, 12:00:42 AM12/13/10
to professi...@googlegroups.com
Hi priyanka dhukte,

May be below link will be very helpfull to you.
http://www.hunlock.com/blogs/Mastering_The_Back_Button_With_Javascript

If we can capture JS event when Backbutton is clicked then we can control navigation. But this require some js coding.
Above article will help you understand possibility of that event.

But still i would recommend you to do this. Its bad user experience.


Regards,
Vishal
 


Reply all
Reply to author
Forward
0 new messages