View difference between Paste ID: Cg9Y3Spx and RUaymiwe
SHOW: | | - or go back to the newest paste.
1-
<html>
1+
<html>
2-
<script>
2+
<script>
3-
alert("Lyend's shit");
3+
alert("Lyend's shit");
4-
function htt()
4+
function htt()
5-
{
5+
{
6-
document.getElementById("demo").innerHTML="So yeah, you switched pages and wording, lovely! / Break code!";
6+
document.getElementById("demo").innerHTML="So yeah, you switched pages and wording, lovely! / Break code!";
7-
}
7+
}
8-
</script>
8+
</script>
9-
<p id="demo">A Paragraph</p>
9+
<p id="demo">A Paragraph</p>
10-
So anything right here will disappear when you click that button?
10+
So anything right here will disappear when you click that button?
11-
<button type="button" onclick="htt()">Try it</button>
11+
<button type="button" onclick="htt()">Try it</button>
12-
12+
13-
13+
14-
<script>
14+
<script>
15-
function Math()
15+
function Math()
16-
{
16+
{
17-
var x=5;   // declare x and assign the value 5 to it
17+
var x=5;   // declare x and assign the value 5 to it
18-
var y=x+2; // declare y and assign the epression value x+2 to it 
18+
var y=x+2; // declare y and assign the epression value x+2 to it 
19-
document.getElementById("myP").innerHTML=y // write the value of y to myP
19+
document.getElementById("myP").innerHTML=y // write the value of y to myP
20-
}
20+
}
21-
</script>
21+
</script>
22-
<p id="myP"> x=5<br> x+2=y<button type="button" onclick="Math()">Equals?</button></p>
22+
<p id="myP"> x=5<br> x+2=y<button type="button" onclick="Math()">Equals?</button></p>
23-
</script>
23+
</script>
24
</html>