document.createElement .......

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gettingbetter
    New Member
    • Aug 2011
    • 1

    document.createElement .......

    Hi guys,
    I was wondering how we can use document.create Element() in javascript program to create an object of javascript, which will further refers to a jpg image.
    any help is appreciable.
    Thanks
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    you create with that function an HTML <img> element, assign the image location to the src property and attach this object to the DOM tree.

    Comment

    Working...