Back to Scripts page
Click in the box below, select all and copy to grab the script
<HTML> <HEAD> <TITLE>Little Window</TITLE> <SCRIPT LANGUAGE=JAVASCRIPT> <!-- Hide script from old browsers // This script copyright 1997, Tom Negrino and Dori Smith. // This script is from "JavaScript for the WWW, Visual QuickStart Guide, 2nd Ed." // For more information, see <http://www.chalcedony.com/javascript/>. // This script may be used and modified, but the copyright notice must remain intact. function updateParent(textField) { opener.document.outputForm.msgLine.value = "Hello " + textField.value + "!" } // End hiding script from old browsers --> </SCRIPT> </HEAD> <BODY BGCOLOR=WHITE> <H1>What's your name?</H1> <FORM> <INPUT TYPE=TEXT onBlur="javascript:updateParent(this)" SIZE=20> </FORM> </BODY> </HTML>