The home() method

The home() method is used to send the viewer to the homepage the viewer has set in the browser settings.

<form>
<input type="button" value="Go to your Homepage!" onclick="window.home();" />
</form>

Note:
This method doesn’t work in all browsers.

Leave a Reply