/    Sign up×
Community /Pin to ProfileBookmark

Disable the back button

Hi,
I need to disable the back button i my browser can any one give me a sample application.Supportable for both IE and Mozilla

Thanks,

Manoj

to post a comment
JavaScript

5 Comments(s)

Copy linkTweet thisAlerts:
@rnd_meAug 04.2008 — open it in a new window with no history in the first place.
Copy linkTweet thisAlerts:
@vesper8Aug 04.2008 — you can do what rdn_me suggested. You could also make it so that when a user tries to go back he is immediately sent back to where he came from (many sites do this through redirects, which I find inredibly annoying). You can override the 'backspace' button by listening for that key and adding your own bit of custom code when someone hits it. But there's no way to actually grey out the back button in the browser controls.
Copy linkTweet thisAlerts:
@Angry_Black_ManAug 04.2008 — You could also make it so that when a user tries to go back he is immediately sent back to where he came from (many sites do this through redirects, which I find inredibly annoying).[/QUOTE]

i hate that crap with a furious passion. often i want to go to a history item that has nothing to do with the current site and i have to manually select it from the dropdown!
Copy linkTweet thisAlerts:
@Declan1991Aug 04.2008 — You could also make it so that when a user tries to go back he is immediately sent back to where he came from (many sites do this through redirects, which I find inredibly annoying). You can override the 'backspace' button by listening for that key and adding your own bit of custom code when someone hits it. But there's no way to actually grey out the back button in the browser controls.[/QUOTE]
And disabling JavaScript makes it irrelevant. Stick to what rnd me said, nd remember that if you want to keep people visiting your site, [b]don't mess with their browser[/b].
Copy linkTweet thisAlerts:
@felgallAug 04.2008 — Disabling browser functionality is the quickest way to lose visitors (even faster than deleting your site completely).

You need to make sure that your page works with the browser functionality - not the other way around.
×

Success!

Help @manojmathe spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.26,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ,
analytics: Fullres
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Marika,
tipped: article
amount: 1000 SATS,

tipper: @hatem774,
tipped: article
amount: 1 SATS,

tipper: @nearjob,
tipped: article
amount: 1000 SATS,
)...