How to get "SRC" or URL of selected image.

  •  03-29-2005, 11:30 AM

    How to get "SRC" or URL of selected image.

    i am using following code ..
    and not able to get the "SRC" or URL of the seleted image ..

    var editor1 = document.getElementById('<%=Editor1.ClientID%><%=Editor1.ClientID%><%=Editor1.ClientID%>');
    var editdoc = editor1.GetDocument(); 
    if(editdoc.selection.type=='Control')
    {
         
            WANT TO KNOW HOW TO GET THE "SRC" or URL OF 
            SELECTED IMAGE , HERE ...
     
    }
View Complete Thread