/    Sign up×
Community /Pin to ProfileBookmark

Need Help With Alert MSG Plz

How do U create a alert message where, if some was 2 right click on the page they can’t view the source or copy the text??

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@soccer362001Aug 29.2003 — <script language="JavaScript">

<!--

var mymessage = "message";

function rtclickcheck(keyp){

if (navigator.appName == "Netscape" && keyp.which == 3) {

alert(mymessage);

return false;

}

if (navigator.appVersion.indexOf("MSIE") != -1 && event.button == 2) {

alert(mymessage);

return false;

}

}

document.onmousedown = rtclickcheck

//-->

</script>
Copy linkTweet thisAlerts:
@Lost_compauthorAug 29.2003 — Thanks Man.?
Copy linkTweet thisAlerts:
@pyroAug 29.2003 — They can still view the source and copy the text, however. They can do it all from their file menu, or through the keyboard shortcuts...
×

Success!

Help @Lost_comp 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.29,
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,
)...