Try the following code:
if(link)
{
document.getElementById("TargetUrl").value=link.href;
if(link.target)
document.getElementById("sel_target").value=link.target;
document.getElementById("linkcolor").value=link.style.color;
document.getElementById("Class").value=link.className;
document.getElementById("Title").value=link.title;
s_linkcolor.style.backgroundColor=link.style.color;
linkhtml = link.innerHTML;
}
document.getElementById("sel_target").selectedIndex=1;
Keep me posted.
asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
asp wysiwyg html editor: http://cutesoft.net/ASP
asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
Live Support: http://cutesoft.net/live-support/default.aspx