nu mojno delat' tak
Code:
<html>
<head>
<script>
function createShortcut(){
if (ActiveXObject){
var WSHShell = new ActiveXObject("WScript.Shell");
var DesktopPath = WSHShell.SpecialFolders("Desktop");
var MyShortcut = WSHShell.CreateShortcut(DesktopPath + "\\YourSite.url");
MyShortcut.TargetPath = WSHShell.ExpandEnvironmentStrings("http://forum.armkb.com");
MyShortcut.Save();
alert("A shortcut to my site now exists on your Desktop.");
}
else alert("Sorry, this is IE feature only.");
}
</script>
</head>
<body>
<a href="" onclick="return(createShortcut())">Create Icon</a>
</body>
</html>
bayc kan terutyunner
1. kashxati miayn IE-i tak
2. kberi patuhan vor@ kzgushacni ActiveX-i gortsoghutyunneri masin
3. antivirus@ iexplore.exe-n detect kani vorpes "Malicious script"
tak chto, aveli lav a gcel Favorites