[Solved] How to open a website within a particular Div in HTML [closed]


Change your function to this:

function mobile320() {
    document.querySelector(".browser1").setAttribute("src", "http://www.idevtechnolabs.com");
}

…and your div to this…

<iframe class="browser1"></iframe>

Here’s a working example.

1

solved How to open a website within a particular Div in HTML [closed]