Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <script>
- alert("Lyend's shit");
- function htt()
- {
- document.getElementById("demo").innerHTML="So yeah, you switched pages and wording, lovely! / Break code!";
- }
- </script>
- <p id="demo">A Paragraph</p>
- So anything right here will disappear when you click that button?
- <button type="button" onclick="htt()">Try it</button>
- <script>
- function Math()
- {
- var x=5; // declare x and assign the value 5 to it
- var y=x+2; // declare y and assign the epression value x+2 to it
- document.getElementById("myP").innerHTML=y // write the value of y to myP
- }
- </script>
- <p id="myP"> x=5<br> x+2=y<button type="button" onclick="Math()">Equals?</button></p>
- </script>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment