How To Make Your Website As User's Homepage

Make Your Website as User's Homepage

In this tutorial, we are going to learn on How To Make Your Website As User's Homepage. You can edit the source code to put your website link, or you can drag your link to the home button to make your website as your home page. Let's start with: This is the source code:
  1. <div style="margin: auto; width: 355px; text-align: center;">
  2. <br />
  3. <br />
  4. <br />
  5. <script language="JavaScript">
  6.         if (document.all){
  7.           document.write('<a href="javascript:history.go(0);" onClick="this.style.behavior=\'url(#default#homepage)\';this.setHomePage(\'http://www.sourcecodester.com/\');">');
  8.           document.write('<font size="5" color=6699FF face=arial><B>Click Here to Make My Web Page Your Homepage</B></font></a>');
  9.         }
  10.         else if (document.getElementById){
  11.           document.write('<a href="http://www.sourcecodester.com/" style="color:red; font-size:larger; font-family:cursive;">Drag and Drop your website link to make this your Home Page.</a>');
  12.         }
  13.         else if (document.layers){
  14.           document.write('<b>Make this site your home page:</b><br>- Go to <b>Preferences</b> in the <B>Edit</B> Menu.<br>- Choose <b>Controller</b> from the list on the left.<br>- Click on the <b>"Use This Page"</b> button.');
  15.         }
  16.         else {
  17.           document.write('<b>Make this site your home page:</b><br>- Go to <b>Preferences</b> in the <B>Edit</B> Menu.<br>- Choose <b>Controller</b> from the list on the left.<br>- Click on the <b>"Use This Page"</b> button.');
  18.         }
  19. </script>
  20. <br />
  21. <br />
  22. <br />
  23.         <a target="_blank" href="http://www.sourcecodester.com/" style="text-decoration: none">
  24.                 <span style="font-size:larger;">Free Source Code In Sourcecodester.com</span>
  25.         </a>
  26. </div>

Output:

Result So what can you say about this work? Share your thoughts in the comment section below or email me at [email protected]. Practice Coding. Thank you very much.

Add new comment