Javascript language

adplus-dvertising
Setting the home page
Previous Home Next

How to Set the home page

Step 1. Written below code in your application.

<html>
<head>
<script language="JavaScript">
function Dflt(element)
{
element.style.behavior='url(#default#homepage)'; 
element.setHomePage('http://www.r4r.co.in');
}
</script>
</head>
<body>
<p>Click the button to get your home page.</p>
<form>
<input type="button" 
onclick="Dflt(this)" 
value="Make r4r your default homepage">
</form>
</body>
</html>

Step 2. Run the Application.

Previous Home Next