Javascript allows you to add trusted sites, modify activex security settings, disable pop-up blocking programs, and disable jsactivex.
To add a website to a trusted site, you do not need to be prompted in the pop-up window by using system controls. You can achieve this through the following method:
First, understand the values and meanings that can be set.
Regist
Disable the method that invalidates the JavaScript Alert pop-up box. Disable criptalert
This article describes how to invalidate the Alert pop-up box of JavaScript, that is, disabling the JS pop-up warning box.
Because the green internet environment is promoted now, the pop-up box will inevitably affect your mood, so
Disable part of the page JavaScript is not all but part, page javascript
The methods discussed in this article have not been applied in actual projects, because I have not met projects that require such a purpose, but the experiment shows that it is feasible.
I. Sources of my ideas
The appearance of JavaScipt is a good thing that makes webpage pages more lively.
How to disable javascript caching for html pages and cache JavaScript For html pages
The example in this article describes how to make html pages not cache js. Share it with you for your reference. The specific implementation method is as follows:
Many of our friends will encounter this situation: if Javascript is load
This article describes how to close and display JavaScript advertisements, and how to close and display javascript ad windows, for more information about how to disable and display JavaScript advertisements, see the example in this article. Share it with you for your reference. The specific implementation method is as
scientific method, I will discuss it with you.
II. Specific implementation
Let's take a look at the following code to disable the "alert" and "write" methods:
The Code is as follows:
Window. alert = function (){}Document. write = function (){}Window. alert ('alert some message ');Document. write ('write some message ');
It looks really simple. In actual application, extract the first two lines and store them in an external JS file, load the J
Listen to and disable browser carriage return event instances in JavaScript, and listen to javascript
Js listens to browser carriage return events and supports browsers such as ie6 +, Firefox, and Google.Copy codeThe Code is as follows:
So, how to capture the carriage return event of a specified DOM object? Here, the input label is used as an example to describe:
This article mainly introduces how to disable debugging on the JavaScript console. For more information, see several giant companies, Facebook and Netflix, and decide to prohibit users from executing JavaScript commands on the console.
This was initially started with Facebook, which was used to prevent malicious users from spreading messages (sending a large amo
In some cases, what we write is not copied by others. how can we implement it in code? The following small series will introduce you to the javascript code to easily prohibit the copying of webpage content. if you are interested, let's take a look at the following code, which is very simple and easy to prohibit the copying of webpage content.
Sometimes we need to prohibit others from copying the website content. the following code can easily implem
The pop-up box will inevitably affect your mood, so you can use the following code to block the Js pop-up box, the implementation idea is to rewrite the alert method. This article will introduce how to invalidate the Alert pop-up box of JavaScript, that is, disable the JS pop-up warning box.
Because the green internet environment is promoted now, the pop-up box will inevitably affect your mood, so the fo
realizationLook at the following code to disable the "alert", "write" two methods:
Copy Code code as follows:
window.alert=function () {}
document.write=function () {}
window.alert (' Alert some message ');
document.write (' Write some message ');
It looks really simple, in the actual application, the first two lines out of the existence of an external JS file, and in the need to filter JavaScript
[Hkey_current_user\software\adobe\acrobat Reader\9.0\jsprefs]"Benablejs" =dword:00000000Copy the red section above into Notepad and save it as "Disabledadobereaderjs.reg".4. How to disable JavaScript functionality for other Adobe software in the registryRefer to the following method to disable JavaScript for other adob
This article mainly introduces the use of JavaScript implementation to disable all text boxes on a Web page, Drop-down menu, multiline text fields. Need friends can come to the reference, I hope to help you. The principle is to loop through the controls on the Web page, and then set the Disabled property to true. nbsp; Code as follows: nbsp; code is as follows: ; nbsp; The following are the types of contro
In fact, this problem in the first time to learn HTML in the Select tag has come out, today, still do not find the use of pure CSS to disable a-label approach-colleagues, classmates, teachers I have asked, they are all the same with the use of JavaScript, Do you really have to use JavaScript?1, pure CSS to implement the HTML in the A-label disable:Copy CodeThe co
frontpage|javascript| Disable | design | Web page
From animations to applications, JavaScript can be used in a variety of objects within a site. But some browsers do not support JavaScript, so sometimes visitors may not be able to display correctly when viewing pages that contain JAVACRITP, or they may contain errors.
1. Disable right-click and copyMethod 1:Add the following code to the webpage:
Method
2:Add the following code to OrIn essence, method 2 is the same as method 1.Fang
Method 3:If you only restrict replication, you can add the following code in 2. Enable menu "TextInvalid part "-" Save"If you only disable right-click and select copy, you can also use "file"-"Save as" in the browser menu to copy files. To cop
This article mainly summarizes several common methods for disabling right-click and mouse drag on the webpage. It is very practical and can be used as a reference by a small partner.
1. Right-click prohibited menu:
There are two ways to disable right-clicking
1. Add a Javascript event handle to the Body tag of the HTML element. The Code is as follows:
The Code is as follows:
Note: You can also
This article mainly summarizes several common methods for disabling right-click and mouse drag on the webpage. it is very practical and can be used as a reference by a small partner.
1. right-click prohibited menu:
There are two ways to disable right-clicking
1. add a Javascript event handle to the Body tag of the HTML element. the code is as follows:
The code is as follows:
Note: You can also
This article mainly introduces the way to disable JavaScript console debugging, the need for friends can refer to the followingSeveral giant companies, Facebook and Netflix, have decided to prohibit users from executing JavaScript commands in the console (console). Initially this was started by Facebook to prevent malicious users from executing specific command-m
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.