<a href="#" onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.whatever.com');">set the homepage</a>
This works for the PC. Don't know if it's different on the Mac, but you can give it a shot.
January 21st, 2003, 03:47 PM
is there any way to accomplish the same thing using a function instead of using the onclick method?
btw: I'm fully aware that this code doesn't work... I just don't know why... I'm sure the main reason is my n00b status.
January 21st, 2003, 06:52 PM
January 22nd, 2003, 07:39 AM
hmm... this function gives me the same error as my function. it seems like you just changed the variable name. the return false statement seems to have no effect on it.
thanks for the quick reply though.
This is the error I am recieving.
Error: 'style' is null or not an object
January 22nd, 2003, 07:45 AM
that part above about your function not working, well, strike that.
if I would've look closer I would've seen that you had the function call in the onClick method, not the href.