For Internet Explorer:
HKCU / HKLM "Software\Microsoft\Internet Explorer\Main" "Start Page"
Firefox does not store the home page in the registry because it has different profiles under $APPDATA\Mozilla\Firefox\Profiles\[profile name]
The file you need to read from is prefs.js, and the line:
user_pref("browser.startup.homepage", .... );
To get the default profile you need to read $APPDATA\Mozilla\Firefox\profiles.ini. You'll have to loop through each [Profile#] until Default=1 and you'll have your profile name from Path=...
If you want me to put this into a function (sounds like a good idea too) or if you'd like to make it, then get it up on the Wiki.
sorry to bump this old thread, but I was wondering what is the code for changing firefox homepage? I understood how to implement the internet explorer one by changing the registry key, but not the mozilla firefox.
Whats the code? The wiki page is down at the moment for me, so I can't access it.