Jump to content

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


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.



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.

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.

  • Create New...