intertec
New Member
- Messages
- 946
- Reaction score
- 0
- Points
- 0
This html tutorial is easy but really what html tutorial isnt easy so here it goes:
This tutorial will teach you how to place a link on your site so that when someone clicks it it will change there home page to your homepage. As a webmaster you should do everything you can to get a user to come back to your page and if you have a handy link that lets them set it as there home page they are bound to be coming back!
CODE
<a href="#" onclick="this.style.behavior='url(#default#homepage)'; this.setHomePage('http://www.neogt.com');"> Set (Your sites name) As Hompage</a>
Now if that was an actual link and we would have clicked it, it would have set this page as the home page of your browser!
Let me explain it a little bit more!
First we needed a regular html link <a href="#" then we used the attribute onclick to tell the browser what we wanted to do once the url was clicked. Then all we needed was to have our text in there "set (your sites name) as homepage" Once that was complete we needed to end the html code with </a>
All you have to do to is edit the link and replace your sites name with your actual websites name!
Hope you learned something!
This tutorial will teach you how to place a link on your site so that when someone clicks it it will change there home page to your homepage. As a webmaster you should do everything you can to get a user to come back to your page and if you have a handy link that lets them set it as there home page they are bound to be coming back!
CODE
<a href="#" onclick="this.style.behavior='url(#default#homepage)'; this.setHomePage('http://www.neogt.com');"> Set (Your sites name) As Hompage</a>
Now if that was an actual link and we would have clicked it, it would have set this page as the home page of your browser!
Let me explain it a little bit more!
First we needed a regular html link <a href="#" then we used the attribute onclick to tell the browser what we wanted to do once the url was clicked. Then all we needed was to have our text in there "set (your sites name) as homepage" Once that was complete we needed to end the html code with </a>
All you have to do to is edit the link and replace your sites name with your actual websites name!
Hope you learned something!