Can someone help me with the java commands for adding a bookmark and setting my page as the user's homepage?

Much thanks.