-1

Explanation

I have a HTML page and it contains the basic features which any home page or new tab page should have. It contains basic HTML and some CSS and Javascript commands.

I use Google Chrome and I want to set my webpage as the new tab page, or alternatively, I can set it as the homepage and open my page on start-up!

Is there code in any language which I can use to set it as my homepage. HTML and Javascript are preferred by me.

Example Code

<html>
<title> New Tab </title>
<!---The code for making homepage or start-up page --->
<!---Other statements --->
</html>
rene
  • 41,474
  • 78
  • 114
  • 152
Kashish Arora
  • 900
  • 5
  • 25
  • 39
  • A bit unclear what you're asking. Are you asking how to [set your homepage in Chrome](https://support.google.com/chrome/answer/95314?hl=en)? – Robby Cornelissen Aug 09 '14 at 11:38
  • Yes, how to change homepage, but that homepage should be my html page, which is not published and is accessible just to me! – Kashish Arora Aug 09 '14 at 11:42
  • So just set it to a local file URL, i.e. `file:///home/whatever/home.html` – Robby Cornelissen Aug 09 '14 at 11:45
  • You can check the `Joby Mavelikara's` answer from this question http://stackoverflow.com/questions/946189/how-can-i-set-default-homepage-in-ff-and-chrome-via-javascript. That too it can work for `IE`, `Firefox` and not for `Opera` and `Chrome`. – Earth Aug 09 '14 at 11:51

1 Answers1

0

In google chrome click on the top-right menu icon and select settings. Now under appearance check Show Home button option. Now click on the change link under it. Here you can select a url of the home page for your chrome browser.

Faiz Ahmed
  • 1,083
  • 8
  • 16