rudolph9 rudolph9 - 10 months ago 53
HTML Question

open page automatically using javascript

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?

Answer Source

you may use this

    <script type="text/javascript">
    function load()
    window.location.href = "";


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