Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title>Javascript Console</title>
- <script type="text/javascript">
- function runCode(code) {
- try {
- document.getElementById('result').innerHTML='Result : <br />'+eval(code);
- }
- catch(e) {
- document.getElementById('result').innerHTML=e;
- }
- }
- </script>
- <style type="text/css">
- body { text-align: center; color: green; background-color: black; font-famiyl: Arial; font-size: 12px; }
- input,textarea,select { color: green; background-color: black; border:1px; border-color: white; border-style: solid; }
- </style>
- </head>
- <body>
- <textarea cols="55" cols="15" id="code"></textarea><br /><input type="button" value="Run" onClick="javascript:runCode(document.getElementById('code').value);" /><div id="result"></div><div id="frame"></div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement