Hello, I am having trouble linking my javascript file tothe html file and unable to get the document.write toprompt on my the mainpage.html file. Any help is greatlyappreciated.
Thank you,
Instructions Version 4: In this version, we will make our site dynamic by adding some JavaScript: -myclub -assets -stylesheets -js -image1.jpg -mainstyle.css -funscript.js -mainpage.html -calendarpage.html Inside your club folder make a folder called "js". Create an external JavaScript file that will be applied to the home page in your site (name it "funscript.js" and save it in the js folder) that will: • Use a combination of document.write and prompt to ask the viewer what their major is and display the following back to them "Great, we love xxxxx majors in this club!" **Make sure the xxxx's are replaced with the major the view entered. *Must be manually coded in Notepad++
Hello, I am having trouble linking my javascript file to the html file and unable to get the document.write to prompt on
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am