My first thought after trying the code is that this line:
<a href="AddFavLnk();">Add to Desktop</a>
<a href=# onClick="AddFavLnk()">Add to Desktop</a>
or something like that.
Alternatively, it's probably possible to put something like:
but I've never played around with that kind of call so syntactically it may be incorrect.
Having said all that, I'm still getting a problem with "Shl" being undefined, so I'll delve a little deeper into the code and try work out why that is.
I think that there's a better way of writing "href=#" but I can't recall it right now.