Home > Web Front-end > JS Tutorial > body text

Extremely cool javascirpt, allowing you to edit any web page at will_javascript skills

WBOY
Release: 2016-05-16 19:18:38
Original
1012 people have browsed it

JavaScript programming can sometimes be very interesting. You can refer to the excitement of our omelette master Sein after accidentally learning a JavaScript cheat (the message below is more worth reading). Now someone has unearthed a pretty cool one. For tips, just open a website and type in the address bar:

Copy the code The code is as follows:

javascript:document.body.contentEditable='true'; document.designMode='on'; void(0)
Please change the full-width symbol to half-width, press Enter, OK, you are You can edit this page as you like. For those who like pranks, quickly open... well, for example, Microsoft's website, and then change it beyond recognition.

#kind reminder 1: Of course, this kind of change can only be viewed by yourself and will not affect the server. It can be said to be the most authentic YY.

#kind reminder 2: Some scripts given in digg’s comments are cooler, such as this one. After opening the google web page, enter the following content in the address bar and press Enter:

Copy code The code is as follows:

javascript:R=0; x1=.1; y1=. 05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; A(){for(i=0; i-DIL; i ){DIS=DI[ i ].style; DIS.position='absolute'; DIS.left=Math.sin(R*x1 i*x2 x3) *x4 x5; DIS.top=Math.cos(R*y1 i*y2 y3)*y4 y5}R }setInterval('A()',5); void(0);
There are others Relevant links to the workings behind these scripts are given.

#kind reminder 3: The attached picture is of course my cunni’s masterpiece, Wakaka!

#kind reminder 4: I don’t know why copying these codes will automatically change the half-width single quotes into full-width double quotes, so please change them to half-width single quotes to see the effect.

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!