Let's talk less about it and look at the Code directly:
P.html
<! Doctype HTML public "-// W3C // dtd html 4.0 transitional // en"> <br/> <HTML> <br/> <pead> <br/> <title> pop-up message </title> <br/> <meta name = "generator" content = "editplus"> <br/> <meta name = "author" content = ""> <br/> <meta name = "keywords" content = ""> <br/> <meta name = "Description" content = ""> <br/> </pead> </P> <p> <body> <br/> <input type = "text" id = "text1" size = "20"> <br/> <Input type = "button" value = "Open "Onclick =" pop_message () "> <br/> </body> <br/> </ptml> </P> <p> <MCE: script Language = "JavaScript"> <! -- <Br/> function pop_message () <br/>{< br/> var paramers, sh, SW; <br/> Sh = screen. height-160; <br/> Sw = screen. width-255; <br/> paramers = "dialogwidth: 200px; dialogheight: 100px; Status: No; dialogtop:" + sh + "; dialogleft: "+ SW <br/> Surl = Window. showmodaldialog ("message.html", '', paramers); <br/> If (Surl = NULL) <br/>{< br/> Surl = ""; <br/>}< br/> text1.value = Surl; <br/>}< br/> // --> </MCE: SCRIPT>
Message.html
<! Doctype HTML public "-// W3C // dtd html 4.0 transitional // en"> <br/> <HTML> <br/> <pead> <br/> <title> tip </title> <br/> <meta name = "generator" content = "editplus"> <br/> <meta name = "author" content = ""> <br /> <meta name = "keywords" content = ""> <br/> <meta name = "Description" content = ""> <br/> </pead> </ p> <p> <body leftmargin = "0"> <br/> <P style = "font-size: 12px; text-align: center; cursor: pointer; "mce_style =" font-size: 12px; text-align: center; cursor: pointer; "onclick =" window. returnvalue = 'window return value in mode'; window. close () "> <br> click here to return the string: "Mode window return value" </P> <br/> </body> <br/> </ptml> </P> <p>
Don't explain it in detail .........