Open a page within a page

Asked

Viewed 2,186 times

1

For example, there is a button that leads to another page, but I would like it to open in the same, like a dialog box, with close button, maximize and also to be highlighted, (without being able to interact with elements outside of it).

I’ve done something like this with dhtxml, but you can do it with CSS and/or Javascript?

I’d also like to ask if you can center something, like a form automatically depending on the screen size, or is it just the px arm per px?

2 answers

2

I only know Iframe via HTML:

<iframe src="demo_iframe.htm" name="iframe_a"></iframe>

<p><a href="https://www.w3schools.com" target="iframe_a">W3Schools.com</a></p>

In Javascript, you have to download the page via the GET call and set the innerHTML (for example) of a div of this page. But in practice I don’t know exactly how to do.

0

To center, try to put this code in Div

.Video {
  margin: 0;
  /* removing the default ul margin */
  padding: 0;
  /* removing the default ul padding */
  text-align: center;
}
<div class="Video">
  Elemento qualquer
</div>

Browser other questions tagged

You are not signed in. Login or sign up in order to post.