Need Help with HTML iframe

Discuss other programming languages besides AutoHotkey
sn0365
Posts: 25
Joined: 03 Aug 2018, 12:59

Need Help with HTML iframe

Post by sn0365 » 17 Oct 2018, 06:54

Need some help.

I am extremely new to HTML. I have created an iframe for a webpage. When I load the iframe, the page has a redirection. I need that redirected page automatically opening within the iframe.
Here is my code.

<!DOCTYPE html>
<html>
<head<title><center><font size ="6">test </font></center></title></head>
<br>
<head><center><b><font size ="4">PROJECT - REAL TIME TRACKING OF A SPECIMEN </font><b></center></head>


<style>
div{
width:1550px;
height:570px;
position:relative;
border:20px solid black;
overflow:hidden;
}

iframe{
position:absolute;
width:1550px;
height:2000px;
top:-200px;
right:0px;
}

</style>
</head>
<body>

<body style="background-color:powderblue;">
<div>

<iframe src="website name" scrolling="yes" frameborder="no"><iframe>
</div>

</body>
</html>

iamkajal
Posts: 4
Joined: 10 Jun 2021, 21:38

Re: Need Help with HTML iframe

Post by iamkajal » 21 Jun 2021, 01:52

Hi, if you are want to redirect a webpage to another, then you try this code.

Code: Select all

<head>
  <meta http-equiv="refresh" content="5; URL=https www.bitdegree.org /"  Broken Link for safety />
</head>
<body>
  <p>If you are not redirected in five seconds, <a href="https www.bitdegree.org /"  Broken Link for safety>click here</a>.</p>
</body>

Post Reply

Return to “Other Programming Languages”