/    Sign up×
Community /Pin to ProfileBookmark

Disabling back

Does anyone have the following code?, i want it to disable the back button to stop users going to the previous page?

also, i have an image map and i want part of it only to be clicked on once,so after part of the image has been click on it will disalow any-one trying to click on it again.

Any suggestions for both/any of them??

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@Khalid_AliFeb 22.2004 — you can't do that ,and even if yu could,its extremely rude to do sucha thing.
Copy linkTweet thisAlerts:
@chrizauthorFeb 23.2004 — Well, instead of disabling the back button on the window can't i use javascript to detect if the user has already been to that page. If so pop up an alert box saying that they can't go there (So it's really like using cookies or something?)

Any ideas??
×

Success!

Help @chriz 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.2,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

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: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

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