Coding Javascript by Adobe Dreamweaver


#1

Hi guys I got a problem in coding Javascript by dreamweaver. When I code just as it should with all the details, I don't see the result in any of browsers. What is the problem with my code (only the problem that's preventing it to run). Is there something that I have to learn?
The syntax for instance:






I wonder if you can help me! :blush:


#2

first off, even when writing html elements, that requires you to use quotation marks around it:

document.write("<h1>Hello World!</h1>");

now i need to test something, give me a second, i made a html file:

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <script>
        document.write("<h1>hello world</h1>");
        document.write("<p>this works</p>");
  </script>
  <title></title>
</head>
<body>

</body>
</html>

seems to work like a charm, to be honest, your dreamweaver looks oudated, and your html code is outdated


#3

Now I see, thank you :blush: