I want to know what a risk is in the code Matgaper with me | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

I want to know what a risk is in the code Matgaper with me

<script language="Javascript"><br /><br /><!-- This script and many more are available online free at --><br /><!-- The JavaScript Source!! http://javascript.internet.com --><br /><br /><!-- Begin<br />var COLOR = 999999<br />var woot = 0<br />function stoploop() {<br />document.bgColor = '#000000';<br />clearTimeout(loopID);<br />}<br />function loopBackground() {<br />if (COLOR > 0) {<br />document.bgColor = '#' + COLOR<br />COLOR -= 111111<br />loopID = setTimeout("loopBackground()",1)<br />} else {<br />document.bgColor = '#000000'<br />woot += 10<br />COLOR = 999999<br />COLOR -= woot<br />loopID = setTimeout("loopBackground()",1)<br /> }<br />}<br />// End --><br /></script><br /><br /><form name="background"><br /> <p align="center"><input type="button"<br /> value="ابداء العمل" onclick="loopBackground()"> <br><br /> <input type="button" value="توقف" onclick="stoploop()"> </p><br /></form><br />

9th Jun 2019, 7:50 PM
‎محمد النزهي‎
‎محمد النزهي‎ - avatar
1 Answer
+ 1
I think this code was an example of "JavaScript Code highlight " Isn't?☺
1st Jul 2019, 6:36 AM
Kelvin Paul
Kelvin Paul - avatar