It is not possible to do this via code in most browsers as a security measure. If it was, any website you visit could automatically make itself your homepage without your agreement.
The fact old versions of IE let you do this is very much the exception rather than the rule.
If you require this behaviour, you would need to write a step by step guide telling people what toolbar to click on, and where to set their homepage in their browser settings.