Начало
Навигация
Браузер
Описание: (Internet Explorer Only) Создать окно браузера в рамках существующего браузера окно. Позволяет однозначно предоставления пользовательских ссылок и навигации.
Location:
JavaScript Navigation: Браузер
<!-- THREE STEPS TO INSTALL BROWSER: 1. Copy the coding into the HEAD of your HTML document 2. Add the onLoad event handler into the BODY tag 3. Put the last coding into the BODY of your HTML document --> <!-- STEP ONE: Paste this code into the HEAD of your HTML document --> <HEAD> <SCRIPT LANGUAGE="JavaScript"> <! > <! > <!-- Begin function writeLayer(text) { document.frames['myFrame'].location.href = text; document.addrForm.location.value = text; } function setLayer(text) { if (text.indexOf("http://",0) <= 0) text = "http://" +text; document.frames['myFrame'].location.href = text; document.addrForm.location.value = text; } function onLoad(text) { if (text != "Microsoft Internet Explorer") { alert("netscape not supported"); history.back(); } return true; } // End --> </script> </HEAD> <!-- STEP TWO: Insert the onLoad event handler into your BODY tag --> <BODY onLoad="onLoad(navigator.appName)"> <!-- STEP THREE: Copy this code into the BODY of your HTML document --> <iframe src="about:blank" width=100% height=90% id=myFrame></iframe> <center> <form name=addrForm> <input type=button value="New JavaScripts" onClick="writeLayer('http://javascripts-do.narod.ru')"> <input type=button value="Yahoo" onClick="writeLayer('http://www.yahoo.com')"> <input type=button value="Your Own Link" onClick="writeLayer('about:blank')"> Location: <input type=text name=location value="Type any URL here then press Go" onFocus="this.value=''" size=35> <input type=button value="Go" onClick="setLayer(document.addrForm.location.value)"> </form> </center> <!-- Script Size: 1.99 KB -->