iChick
05-01-2008, 03:22 AM
Hi
I'm trying to write a script that sets as homepage in IE but links to a url in all other browsers. The url will be a page which gives information on how to set the homepage in Firefox, Opera, Safari etc. It's not working though. I'd really appreciate any pointers as to where I'm going wrong. Here's what I have:
<script>
function setHome() {
this.style.behavior='url(#default#homepage)';
this.setHomePage('http://www.mysite.com')"; else{location.href='/set_homepage_info.html'}}
</script>
<a href="javascript:setHome()">Set As Homepage</a>
I'm trying to write a script that sets as homepage in IE but links to a url in all other browsers. The url will be a page which gives information on how to set the homepage in Firefox, Opera, Safari etc. It's not working though. I'd really appreciate any pointers as to where I'm going wrong. Here's what I have:
<script>
function setHome() {
this.style.behavior='url(#default#homepage)';
this.setHomePage('http://www.mysite.com')"; else{location.href='/set_homepage_info.html'}}
</script>
<a href="javascript:setHome()">Set As Homepage</a>