I want to make a mini javascript browser, all i want it to do is when someone types a url in the box, it will load a iframe with the page on. How do i do that? ?
@cwaldenauthorOct 08.2006 — #no, i want a input box and a iframe. When someone types a url in the input box, the url is loaded in the iframe, can this be done in serverside javascript?
@cwaldenauthorOct 08.2006 — #if you ned help trying to figure out what i mean, here is my [code=html] <form id="mini_browser"> <input type="text" id="urlbox" value="Url here!" /> </form> <iframe id="urlpage" src="home.html">You need a new browser to use the mini browser, so <a href="http://********firefox.com/">Get Firefox!</a></iframe>[/code]
function loadIframe(){ window.frames["urlpage"].location=document.forms["mini_browser"]["urlbox"].value }
</script>
<form name="mini_browser"> <input type="text" name="urlbox" value="Url here!" /> <input type="button" value="Load Page" onclick="loadIframe()"> </form> <iframe name="urlpage" src="home.html">You need a new browser to use the mini browser, so <a href="http://********firefox.com/">Get Firefox!</a></iframe> [/code]
<form name="mini_browser"> <input type="text" name="urlbox" value="Url here!" /> <input type="button" value="Load Page" onclick="loadIframe()"> </form> <iframe name="urlpage" src="home.html">You need a new browser to use the mini browser, so <a href="http://********firefox.com/">Get Firefox!</a></iframe> [/code]