Comment faire une page apparaît sur une autre page en javascript ?

Asked  Mar 04, 10:12 am 29 Views Add Your Answer
Asked  Mar 04, 10:12 am
0 Dislikes
0 Comments

1 Answers

Added  Mar 04, 02:52 pm

You should use iframe tag:

Example

<!-- index.html -->
<!DOCTYPE html>
<html>
<head>
  <title>My Page</title>
</head>
<body>
  <h1>Welcome to my page!</h1>
  <iframe src="otherpage.html"></iframe>
</body>
</html>

Create the page that will be displayed in the iframe:

<!-- otherpage.html -->
<!DOCTYPE html>
<html>
<head>
  <title>Other Page</title>
</head>
<body>
  <h1>Other Page</h1>
  <p>This is the content of the other page.</p>
</body>
</html>

1 Likes 0 Dislikes
1 Comments
abakarabdallah02 I don't understand?
Added  Mar 05, 12:48 pm
×
SignUp with Email
X