html How to print out the site you want without clicking on the link on the first page

Asked 2 years ago, Updated 2 years ago, 112 views

Hi, everyone. In HTML If you click on index.html, it will be moved to that address I'd like to have the ex) Google appear on the first page when I open the web. What should I do?

html html5 web

2022-09-22 19:34

1 Answers

There is a way to redirect using JavaScript and Metatags.

<body>
    <script type="text/javascript">
        location.href="https://google.com";
    </script>
</body>
<head>
    <meta http-equiv="refresh" content="0; url=https://google.com">
</head>


2022-09-22 19:34

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.