PDA

View Full Version : What does Homelink do??


jeffu
Feb-22-2007, 05:33 AM
I did have this in my bldy tag...

<body onload="changeHomelink();">

and I have this in my Java script...

onload = changeHomelink;
function changeHomelink () {
document.getElementById('homelink').href = 'http://jeffulrich.smugmug.com';
}


I can't even remember why I had them in there I've made so many changes...anyhow - what are they for? When I have them active, I get an error in IE, when I have them commented out, it's fine. Am I missing something?

Barb
Feb-22-2007, 06:14 AM
I did have this in my bldy tag...

<body onload="changeHomelink();">

and I have this in my Java script...

onload = changeHomelink;
function changeHomelink () {
document.getElementById('homelink').href = 'http://jeffulrich.smugmug.com';
}


I can't even remember why I had them in there I've made so many changes...anyhow - what are they for? When I have them active, I get an error in IE, when I have them commented out, it's fine. Am I missing something?

Hi :)

This might help:

http://blogs.smugmug.com/web-tricks/2005/08/23/changing-the-homepage-link/