<HTML> <HEAD> <SCRIPT LANGUAGE = "JavaScript"> function showBox() { userText = prompt("Enter the text for your personalized browser window.","My own browser text"); if (userText != null) { userWindow = window.open("", "userTextWindow", "toolbar=0"); userWindow.document.write("<h1>" + userText + "</h1>") }; } </SCRIPT> <BODY> <FORM> <INPUT Type="button" Value="Create Your Own HTML Page" OnClick="showBox()" </INPUT> </FORM> </BODY>
Related Scripts with Example Source Code in same category :