Is it possible to add disable right click coding or other copy protection to a Web Builder 14 website?
We tried using some Javascript between the head code in the html editor, but it does not work. Here is the code that we used.
--------------------------------------------
<script language=JavaScript>
<!--
<!--
//Disable right mouse click Script
//By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
//For full source code, visit https://dynamicdrive.com
var message="Sorry, that function is disabled.\n\n";
message += "This page is copyrighted and all protected, ";
message += "Copyright 2020 We Are Puppeteers, All Rights Reserved.";
///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}
function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}
if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}
document.oncontextmenu=new Function("alert(message);return false")
// -->
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
<META HTTP-EQUIV="imagetoolbar" CONTENT="no" />
----------------------------------------------------------------------------
2. How to add a subject line to email links. Example: email links now open a blank email. We would like to add a specific Subject line.
Thank you!
1. How to add disable right click and 2. How to add a subject line to email links.
Forum rules
IMPORTANT NOTE!!
DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.
PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
IMPORTANT NOTE!!
DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.
PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
Re: 1. How to add disable right click and 2. How to add a subject line to email links.
1. In 'Ready-to-use-JavaScripts' there is a script to disable right click. Your script looks very old! (for IE4)
2. Maybe this will be helpful?
https://css-tricks.com/snippets/html/mailto-links/
2. Maybe this will be helpful?
https://css-tricks.com/snippets/html/mailto-links/
Re: 1. How to add disable right click and 2. How to add a subject line to email links.
Hi, thanks for pointing out the ready to use javascripts....will give it a try.
For the email code, we do not know how to modify the generated code within WB14. We have used subject lines and even short messages...but do not know how to modify. Thanks again!
For the email code, we do not know how to modify the generated code within WB14. We have used subject lines and even short messages...but do not know how to modify. Thanks again!
Re: 1. How to add disable right click and 2. How to add a subject line to email links.
Hello again...Would I add the javascript for the disable right click to the "master", or to each page's code....or both! Thanks.
Last edited by skanaba on Sun Feb 02, 2020 10:42 pm, edited 1 time in total.
Re: 1. How to add disable right click and 2. How to add a subject line to email links.
I see in the various literature online...that editing html requires that we use an editor like Dreamweaver to import the published page file, then modify the html code (for adding a subject line to an email link). Once done, I am assuming that we save the page, and upload it. My question: If we open the page in WB14 to edit the page, will the modified email link be retained, or will we need to export, modify and save again? Thank you.
Re: 1. How to add disable right click and 2. How to add a subject line to email links.
You do not need to edit the code.
You can enter the email address and subject in the input field of the link.
![Image](https://www.wysiwygwebbuilder.com/support/mailtosubject.jpg)
You can enter the email address and subject in the input field of the link.
![Image](https://www.wysiwygwebbuilder.com/support/mailtosubject.jpg)
Re: 1. How to add disable right click and 2. How to add a subject line to email links.
To disable right click add this code to "Inside <Body> Tag" under Page html.
Code: Select all
<BODY oncontextmenu="return false" onselectstart="return false" ondragstart="return false">
Re: 1. How to add disable right click and 2. How to add a subject line to email links.
Thank you Pablo. You're the best! And RogerL, we found that the web builder program has a "Ready-to-use-javascripts" selector...one of which is a disable right click...we tried it and works well. Have a great week to the both of you.
Re: 1. How to add disable right click and 2. How to add a subject line to email links.
Thanks Roger.. Very useful code.rogerl wrote: ↑Mon Feb 03, 2020 10:46 am To disable right click add this code to "Inside <Body> Tag" under Page html.Code: Select all
<BODY oncontextmenu="return false" onselectstart="return false" ondragstart="return false">