Can anyone help me by telling me a script that can set a page as a homepage without showing a alert window to user when load a page.
You mean without asking for the user's permission? That's not possible. (Neither legal)... if you find something, it'll probably just work on IE. FF and most newer browsers don't support the "set homepage" feature.