User input : Dialog : Window Browser JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Window Browser » Dialog »

 

User input



<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>


           
       



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Window Browser
» Dialog