Lyend

Untitled

Sep 23rd, 2012
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <html>
  2. <script>
  3. alert("Lyend's shit");
  4. function htt()
  5. {
  6. document.getElementById("demo").innerHTML="So yeah, you switched pages and wording, lovely! / Break code!";
  7. }
  8. </script>
  9. <p id="demo">A Paragraph</p>
  10. So anything right here will disappear when you click that button?
  11. <button type="button" onclick="htt()">Try it</button>
  12.  
  13.  
  14. <script>
  15. function Math()
  16. {
  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
  19. document.getElementById("myP").innerHTML=y // write the value of y to myP
  20. }
  21. </script>
  22. <p id="myP"> x=5<br> x+2=y<button type="button" onclick="Math()">Equals?</button></p>
  23. </script>
  24. </html>
Advertisement
Add Comment
Please, Sign In to add comment