<script type="text/javascript"> function dodaj() { var tytul = 'nazwa strony'; var adres = 'http://www.adres.pl/'; if (window.sidebar) { window.sidebar.addPanel(tytul, adres, ""); } else if (window.external) { window.external.AddFavorite(adres, tytul); } else if (window.opera && window.print) { var a = document.createElement('a'); a.setAttribute('href', adres); a.setAttribute('title', tytul); a.setAttribute('rel','sidebar'); a.click(); } } if (window.external || window.sidebar || (window.opera && window.print) ) { document.writeln('<a id="nav-active" href="javascript:dodaj()"> Dodaj do ulubionych</a>'); } </script>
Czy mógłby mi ktoś lekko go wzbogacić, by za każdym razem jak ktoś doda stronę do ulubionych to będzie przychodził do mnie mail?