On a PC you can find Notepad by typing it into search menu in the Start bar.

On a Mac you can find TextEdit by using Spotlight search.

You need to make sure your file is a plain text and not a rich text file. Go to Format and select Make Plain Text. Also go to TextEdit and select Preferences. In the Format section find New Document and make sure Plain Text is checked. In the Options make sure Smart Quotes is unchecked. In the Open and Save tab make sure Display HTML files as HTML code instead of formatted text is unchecked. Go to https://discussions.apple.com/welcome if you need more help.

You have to make sure you have saved your file using the extension .html after the name of our file. Make sure you have selected All files as the File type. So you need to make sure your file name always reads Example.html. On a Mac you need to make sure the check box If no extension is provided use “.txt” is unchecked. See http://www.w3schools.com/html/html_editors.asp for more help.

Find your file in your Coding file. Double click on it and it will open in your default web browser. Mozilla Firefox and Google Chrome are examples of web browsers. If you want to edit your code further in your text-editing program right click on the file icon. Select Open with and then chose the name of your text-editing program.

Make sure you have saved your file, then click refresh in your browser.

It’s really important that you type out the code as carefully and accurately as possible. Your browser needs ever character to be correct and for the code to be in the right order. Check that you have done the following things:

  • Included all the tags in the correct order
  • Opened and closed every tag. Your closing tag needs a forward slash (/)
  • You are using straight quotes and not curly quotes
  • That your capitalization and word spacing is correct

Make sure the file name you have used to save your image matches the file name in your code. If the image is saved on your computer, make sure it is in the same folder as your HTML file.

Try saving your image file using the extension .png rather than .jpg. Make sure you update the file name in your code block.

Check that you have put your code inside a script tag. Make sure you have included the semi colon (;) after each statement and put your function in curly braces ( { }). Also remember JavaScript is case sensitive, so check that all your capital letters match.

Check that pop-ups haven’t been disabled in your browser settings. Just search online for how to enable pop-ups with the browser you are using.