//modified to browse server side files for making the link - vsb function DECMD_HYPERLINK_onclick() { var arr,args,oSel, oParent, sType; oSel = tbContentElement.DOM.selection; sType=oSel.type; var oRange = oSel.createRange(); arr=null; args=new Array(); //set a default value for your link button args["LinkUrl"] = "http://www.mysite.com/thatfolder/thisfile.html"; args["LinkTarget"] = "_self"; var cmdEnable = oRange.queryCommandEnabled("Unlink"); if(cmdEnable){ // do this only if a link is there var aLINK = oRange.htmlText.match(/", args, "font-family:Verdana; font-size:12; dialogWidth:32em; dialogHeight:38em"); if (arr != null){ if(arr["LinkUrl"] != ""){ oRange.pasteHTML("" + oRange.text + ""); } else { // clear the selection of A tags. oRange.pasteHTML( oRange.text ); } } } tbContentElement.focus(); }