I know how to redirect to javascript using window.location = ""; . How to make it in html?
5 answers
probably the easiest way:
<meta http-equiv="refresh" content="0; URL='http://new-website.com'" /> The content attribute is a delay before the browser redirects to a new page, so we assigned it a value of 0 seconds.
- It redirects in the browser and not in html - LGPvS
- 2What in your understanding to redirect in html? - Aliaksandr Pitkevich
- A window with a site which is located on some site - LGPvS
|
<meta http-equiv="refresh" content="seconds;URL-to-redirect"> Example - after 5 seconds you will automatically be redirected to https://www.google.com
<meta http-equiv="refresh" content="5; https://www.google.com"> |
Simple php redirection:
<?php header('Location:http://newcoder.ru/cat/web/'); exit; ?> Simple HTML Redirect:
<input type="button" value="Кнопка" onClick='location.href="http://yandex.ru/"'> |
You probably about this window with the site
<ifarme style="position:fixed;left:0px;top:0px;width:100%;height:100%;" src="http://site.host"></iframe>
- Thank. By the way how to increase this window? - LGPvS
<iframe width="10%" height="10%" src="http://site" />- Aliaksandr Pitkevich- window rectangular rather than square - LGPvS
- when width = "1000%" height = "1000%" the window is generally very long - LGPvS
- 2@LGPvS wondering why suddenly ... Maybe because you put it 10 times more than 100%? - MihailPw
|
<a href="http://your link here">Click me</a> |