This is the script from dynamic drive to set the homepage:

<a href="#" onClick="'url(#default#homepage)';this.setHomePage('');">Click here to make Dynamic Drive your default homepage</a>

but you have to click on the link to perform the task.

Here is my thought,

I want to make a submission button so that when it's clicked, it submits the values from the page and set my page as a homepage( doesn't matter if there's a prompt ). Any ideas?