Set as Home page using Javascript

Posted by Chikul under JavaScript category on | Views : 3382
This JavaScript code will put a Link on site that, when clicked on, will set web site as the Home page.

<a style="CURSOR: hand; text-decoration: underline ; color : Red" 
onclick="'url(#default#homepage)';this.setHomePage(location.href);" >Set as your Home page</a>

Comments or Responses

Login to post response