Open a page within a page

1

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

I've done something like this with dhtxml, but is it possible to do with CSS and / or JavaScript?

I would also like to ask if you can centralize something, such as a form automatically depending on the size of the screen, or is it just in the arm px by px?

    
asked by anonymous 24.04.2017 / 22:17

2 answers

2

I only know the 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 GET call and set the innerHTML (for example) of a div of this page. But in practice I do not know exactly how to do it.

    
24.04.2017 / 22:22
0

To centralize, 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>
    
25.04.2017 / 02:55