treehouse : what would you like to learn today?
Web Design Web Development iOS Development

Image change on load

  • I have a smiley on a page. When you go to the page, I want that smiley's image source to change.
    I'm a noob at javascript, but I was thinking something like this:

    <body onLoad=\"document.getElementById('im').src='http://img10.imageshack.us/img10/9930/bbmoticon.png\">