azz
07-11-2003, 09:09 AM
ok, what is up with this!
I'm trying to set a page as a homepage in
IE 6 using the javascript fn:
function setHome(homepage){
if (document.all){
homepage.style.behaviour='url(#default#homepage)' ;
homepage.setHomePage("http://www.tntmagazine.com/uk/");
alert('DONE! Thank you!');
return false; }
}
and calling it from a simple onClick:
<a style="font-size: 8pt;" href="#" onClick="return setHome(this);" id="buttons" >Set Homepage</a>
but MAN, can I get it to work??? NO!!
keep getting an error message saying 'Object does not support this property or method' on the following line:
homepage.setHomePage("http://www.tntmagazine.com/uk/");
and I can't for the life of me see why! (double quotes recent addition, doesn't work with single quotes either)
any ideas?
Cheers
azz
I'm trying to set a page as a homepage in
IE 6 using the javascript fn:
function setHome(homepage){
if (document.all){
homepage.style.behaviour='url(#default#homepage)' ;
homepage.setHomePage("http://www.tntmagazine.com/uk/");
alert('DONE! Thank you!');
return false; }
}
and calling it from a simple onClick:
<a style="font-size: 8pt;" href="#" onClick="return setHome(this);" id="buttons" >Set Homepage</a>
but MAN, can I get it to work??? NO!!
keep getting an error message saying 'Object does not support this property or method' on the following line:
homepage.setHomePage("http://www.tntmagazine.com/uk/");
and I can't for the life of me see why! (double quotes recent addition, doesn't work with single quotes either)
any ideas?
Cheers
azz