Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <link rel="stylesheet" type="style/css" href="adventure.css"></link>
- <script src="adventure.js"></script>
- </head>
- <body>
- <button onclick=log("testing")>Click Me</button>
- <div id="box">
- <div id="out"></div>
- </div>
- </body>
- function Gid(id) {
- return getElementById(id);
- }
- function log(s) {
- Gid("out").innerHTML = s + "<br>" +
- Gid("out").innerHTML;
- }
- #box {
- width:500px;
- height:300px;
- border:5px solid black;
- overflow:auto;
- }
- #out {
- width:500px;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement