Update image source

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • acoder
    replied
    To update the image source, change its src property:
    Code:
    img.src = newSrcString;

    Leave a comment:


  • nthaka1
    started a topic Update image source

    Update image source

    Hi,

    I have used one HTMLEditor user control in which iframe and textarea are used.

    I had uploaded my html page in that editor and trying to edit html page. In this I want to give facility like when click on any image it gives me the option to edit it or to change the image src.

    for that i had used ' document.select ion; ' but it just gives me type as control.

    I had tried to create the image object and assign the document.select ion to that but it does not work.

    Any type of help / Ideas would be appreciated.

    Thanks.
Working...