How to Make the Page as ur Home Page in JSP?


                      The code is fairly stable. To use it on your page, you really only need to make two changes:
  • Change the URL http://www.google.com to your page
  • Change the text of the phrase Click Here... to be appropriate to your page
     Other than that, just make sure you get the entire code onto one line or you'll get some nasty errors.
Other Changes
     If you want, you can also play with the cursor, the color of the text, and whether the text will be underlined or not. See that in the STYLE= section? You can set the color to any one you want. Just remember that if you use a hex code, then you'll need to put the pound sign (#) in front (eg: #FFCCFF).
How About A Button?
     Don't mind if I do! Notice this effect is achieved via an onClick Event Handler. Because the Event Handler sets it in motion, you can use the code pretty much anywhere an Event Handler comes into play. Here's that button:
     And here's the code that did it:
<FORM>
<INPUT TYPE="button"
VALUE="Make This Page Your Home Page"
onClick="this.style.behavior='url(#default#homepage)';
this.setHomePage('http://www.google.com');">
</FORM>
     Again, the code has been broken down into separate lines because of space constraints, but get that entire INPUT line onto one line in your code.

Comments

Popular Posts