Jump to content

Following "How to Build Websites" at course 7 Javascript Programming: Part 6


Andie

Recommended Posts

Please see attached screenshots. Following the instructions I had to delete the below script and just write in the windows.alert("This is an alert box!"); on the blank page to get that to show up in the opened html page. But is that what I am looking for? Doesn't make sense to me of why insert the below script then delete it. So, of course I am lost on the purpose of this exercise. Was something else supposed to happen? I don't understand the lesson.

program.thumb.png.396da10a65d8dd0b29def4e26964efc0.png1896604070_withcodecopied.thumb.png.36b3369876fb1e1e2abc8b6f137e2fa7.png

resultjavascript.png

Link to comment
Share on other sites

When I leave the script and write the window.alert("This is an alert box!"); after the above script I get the same in a browser window. Issue is what does the <script type="text/javascript" language="javaScript">// <![CDATA[
function callAlert() {              window.alert("This is an alert box!");              }
// ]]></script> even mean?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...