Team:Harvard/Slider Test
From 2011.igem.org
(Difference between revisions)
Line 1: | Line 1: | ||
<html> | <html> | ||
- | <script type="text/javascript"> | + | <head> |
- | + | <title>Really Awesome Webpage </title> | |
- | </script> | + | <script type="text/javascript"> |
+ | function square() | ||
+ | { | ||
+ | var number=document.getElementById("box").value; | ||
+ | var output=number*number; | ||
+ | document.getElementById("paragraph1").innerHTML=output; | ||
+ | }</script> | ||
+ | <style type="text/css">style</style> | ||
+ | </head> | ||
+ | |||
+ | <body> | ||
+ | |||
+ | <h1>My Really Awesome Website</h1> | ||
+ | |||
+ | <p>iGEM 2011 baby!</p> | ||
+ | <p>This is another paragraph. Pretty cool, huh?</p> | ||
+ | |||
+ | <input id="box" type="text"> | ||
+ | <p id="paragraph1">This is a temporary paragraph.</p> | ||
+ | <button type="button" onclick="square()">Display Square</button> | ||
+ | |||
+ | </body> | ||
</html> | </html> |
Revision as of 19:45, 7 July 2011
My Really Awesome Website
iGEM 2011 baby!
This is another paragraph. Pretty cool, huh?
This is a temporary paragraph.