Iframe by Url of Text Box(like browsers)
At Top There should be Input Type text, below there should be iframe, When we enter url above, Webpage should be loaded in below iframe like native browsers.
@John Agreed completely. That's how I am also, and prefer to understand the different angles to the best of my ability. I think I may be getting a little soft with my advice here. lol Most people want instant gratification.
jQuery: $("#yourFrame").attr("src", $('#yourTextBox').val());
thank you it may be helpful for Me,
i have no idea plz Reply with detailed answer
@Netkos Depends on what level of understanding you are going for. I'm letting it confuse me cause I'm also reading the macro source file to see how.
@Netkos he hasn't started JS class and you're giving jQuery to him. The real question is there a HTML only answer for him. Not to my knowledge, but I'm still learning it and loading other documents hasn't been my priority. I could do it using JS. Can you do a HTML only answer?
I just did a similar img load for someone else today. https://code.sololearn.com/W1hhuR5fGR6O/?ref=app
<html><body> <script> var theTextBox=document.getElementById("yourTextBox"); var theFrame=document.getElementById('yourFrame'); theFrame.src = theTextBox.value; </script> <input id="yourTextBox" type="text" class=input_mid placeholder="Enter" value="" name="q" size="20"></input> <iframe id="yourFrame" allowfullscreen="allowfullscreen" frameborder="0"></iframe> </body></html> 👆👆👆👆👆please Tell What Should Be done To make this Work