Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
114
rated 0 times [  115] [ 1]  / answers: 1 / hits: 93304  / 13 Years ago, fri, january 27, 2012, 12:00:00

Essentially, all I want to do is open an external web page after the current page is loaded via java script.



open my page -> javascript tells browser to open external page -> external page being loaded into the broser



How may I accomplish this?


More From » html

 Answers
11

you may use this



<html>
<head>
<script type=text/javascript>
function load()
{
window.location.href = http://externalpage.com;

}
</script>
</head>

<body onload=load()>
<h1>Hello World!</h1>
</body>
</html>

[#87779] Wednesday, January 25, 2012, 13 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
josefn

Total Points: 251
Total Questions: 93
Total Answers: 84

Location: Senegal
Member since Fri, Aug 21, 2020
4 Years ago
;