Jump to content

NewGuy

Members
  • Posts

    2
  • Joined

  • Last visited

NewGuy's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. Here it is. Thanks for trying to help.http://www.w3schools.com/jsref/tryit.asp?f...ryjsref_onerror
  2. Hi.The following code copied from w3 schools<html><body><img src="image.gif"onerror="alert('The image could not be loaded.')"><p>In this example we refer to an image that does not exist, therefore we will get the alert box.</p></body></html>works fine with the try it editor.But when I copy and paste it into notepad, save it and run it using firefox the broken image icon appears but no alert box.However, when I run it in the try it editor the alert box comes up fine.Why?
×
×
  • Create New...