How to use Javascript Onload method?
Hi I want to create a passing page in such a way that when the html load on the browser then another page is loaded automatically using the onload javascript method. I did try to make the page as in the below script but now the problem is the new page opens in the new window.
<html>
<head>
<script type="text/javascript">
function load()
{
self.open("http://www.yahoo.com");
close()
}
</script>
</head>
<body onLoad="load()" target="_self">
<h1>Page loading please wait.............</h1>
</body>
</html>
0 коммент.:
Post a Comment