Java make users homepage your website


SUBMITTED BY: Bensmith1020

DATE: Jan. 31, 2016, 6:30 p.m.

FORMAT: JavaScript

SIZE: 1.6 kB

HITS: 2144

  1. <BODY>
  2. <--hi-->
  3. <SCRIPT LANGUAGE="JavaScript">
  4. <!-- Begin
  5. // If it's Internet Explorer, use automatic link
  6. // Be sure to change the "http://www.YourWebSiteHere.com\"
  7. // to the URL you want them to bookmark.
  8. if (document.all){
  9. document.write('<A HREF="javascript:history.go(0);" onClick="this.style.behavior=\'url(#default#homepage)\';this.setHomePage(\'http://www.YourWebSiteHere.com\');">');
  10. document.write('<font size="5" color=6699FF face=arial><B>Click Here to Make My Web Page Your Homepage</B></font></a>');
  11. }
  12. // If it's Netscape 6, tell user to drag link onto Home button
  13. // Be sure to change the "http://www.YourWebSiteHere.com\"
  14. // to the URL you want them to bookmark.
  15. else if (document.getElementById){
  16. document.write('<a href="http://www.YourWebSiteHere.com">Drag this link onto your Home button to make this your Home Page.</a>');
  17. }
  18. // If it's Netscape 4 or lower, give instructions to set Home Page
  19. else if (document.layers){
  20. 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>Navigator</b> from the list on the left.<br>- Click on the <b>"Use Current Page"</b> button.');
  21. }
  22. // If it's any other browser, for which I don't know the specifications of home paging, display instructions
  23. else {
  24. 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>Navigator</b> from the list on the left.<br>- Click on the <b>"Use Current Page"</b> button.');
  25. }
  26. // End -->

comments powered by Disqus