index.html 423 Bytes
Newer Older
Abanoub Hanna's avatar
Abanoub Hanna committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
<html>
 <head>
  <title>Real Time Code Editor</title>
  <link rel='stylesheet' type='text/css' href='style.css' />
  <script>
   function show(){
   var src = document.getElementById('src').value;
   document.getElementById('view-result').srcdoc = src;
   }
  </script>
 </head>
 <body>
  <div id="content">
   <textarea id="src" onkeyup="show()"></textarea>
   <iframe id="view-result"></iframe>
  </div>
 </body>
</html>