Gustavo,
as far as I know that's not possible within an Alert. But if you resort to popping up a dialog, you can attach an eventListener like this one:
dlg.myText.addEventListener('click', (function() { var fname, shortcut; fname = "_shortcut.url"; shortcut = new File("" + Folder.temp + "/" + fname); shortcut.open("w"); shortcut.writeln("[InternetShortcut]"); shortcut.writeln("URL=http://www.mywebsite.com"); shortcut.writeln(); shortcut.close(); shortcut.execute(); $.sleep(4000); return shortcut.remove();}), false);
Not very much elegant I know, but it works ;-)
Cheers,
Davide Barranca
www.davidebarranca.com