/    Sign up×
Community /Pin to ProfileBookmark

Desable the close button?

Is there code to disable the close button on a webpage? I have a button that is located on the page itself that I would mutch rather be the close button. Thanks in advance to anyone that can help.

Sincerely,

George W. Jackson
CNS w/ Cisco Specialization

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@SearedIceAug 04.2003 — You could make it so that when a user closes your webpage another window pops up with your page on it. You could make it so it keeps opening new windows until the user used your button.

This is the only way I can think of for "disabling" the browser's close button. Of course this is an annoying way to do it and will probably kill traffic.

~John
×

Success!

Help @jacksonbilly 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 5.19,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

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

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...