function toDesktop(sUrl,sName){ {
var WshShell = new ActiveXObject("WScript.Shell");
var oUrlLink = WshShell.CreateShortcut(WshShell.SpecialFolders("Desktop") "\" sName ".url");
oUrlLink. TargetPath = sUrl;
oUrlLink.Save();
}catch(e){
alert("目前IE安全等級不允許操作!");
}
}
建立捷徑