Practical JavaScript

xiaoxiao2021-03-30  211

Practical JavaScript

1, shield mouse button

2, cancel the selection to prevent copy

3, not allowed to paste

4, prevent copy

5, replace it with your own icon before IE address column

6, you can display your icon in your favorites

7, turn off the input method

8, will always bring a framework

9, prevent being frame

10, the web page will not be saved as

11. View web source code

12. How to check if the visitors use agency through the ASP

13, get the absolute position of the control

14, the cursor is the last stop in the text box text

15. Judgment the source of the previous page

16, minimize, maximize, close the window

17, the web page will not be cached

18, check if a string is fully consisting of numbers

19, get the size of a window

20. How to determine if it is a character?

21, the date minus the number of days is equal to the second date

22, the Enter key allows the cursor to move to the next input box

23, detect the link speed of a website

24, cursor of various styles

1. Masked the mouse button οncοntextMenu = "Window.Event.ReturnValue = false" will thoroughly block the mouse button

NO can be used for Table 2, cancel the selection to prevent copying < Body OnSelectStart = "Return False"> Cancel to prevent copy 3, not allowed to paste οnpaste = "return false" is not allowed to paste 4, prevent copy copy = "Return False;" oncut = "Return False;" Prevent Copy 5, IE Changed to its own icon before the address bar IE, replace it with your own icon 6, you can display your icon You can display your icon 7 in your favorites 7. Close input method Close input method 8, will always bring the frame