2 Replies Latest reply on Jun 7, 2010 10:17 AM by Eleeist

    JavaScript does not display in Design view

    Eleeist Level 1

      Hi,

       

      I am just starting to learn JavaScript so excuse my, maybe stupid, questions.

       

      Why the following code does not display Hello world! in Split view on the "design" side? When I upload the file onto the server and try to view it in the browser everything displays normally.

       

       

       

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml">
      <head>
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
      <title>Homepage</title>
      </head>
      <body>
      <script type="text/javascript">
      document.write("Hello World!");
      </script>
      </body>
      </html>