Making script prompt two different events
On the web page’s load, I want the browser to automatically prompt the user to bookmark a specified page.
I know these can only be done in Internet Explorer.
I have developed the following script, which works five:
[COLOR=darkred]<head>
[COLOR=blue]<script type=”text/javascript”>
function addbookmark(){
if (document.all)
window.external.AddFavorite(“http://www.SiteA.com”,”Site A”)
}
[COLOR=blue]</script>
[COLOR=darkred]</head>
[COLOR=green]<body onLoad=”addbookmark()”>
…
[COLOR=green]</body>
What I need help is, I would like the script to prompt one of two different sites, such as Site A and Site B.
Half of the users when going to my site will be automatically be prompted to bookmark Site A, but the other half will automatically be prompted to bookmark Site B.
I don’t know what to do, and any help on this would greatly be appreciated.
Thanks in advanced! :p