Difference between revisions of "User talk:SteveBaker"

From Wikiid
Jump to: navigation, search
Line 10: Line 10:
 
is called when the user moves out of the centigrade input box (onBlur):
 
is called when the user moves out of the centigrade input box (onBlur):
  
<form name="Converter" onClick="alert('You will now go to the next page')">
+
<form name="Converter">
 
Enter the Centigrade Temperature:
 
Enter the Centigrade Temperature:
 
<input type=text name="centigrade" size=10 onblur="convertIt()"></input>
 
<input type=text name="centigrade" size=10 onblur="convertIt()"></input>
Line 19: Line 19:
 
</form>  
 
</form>  
  
<center>HELLO!</center>
+
<center onClick="alert('You will now go to the next page')">HELLO!</center>

Revision as of 20:39, 20 November 2007

<SCRIPT LANGUAGE="JavaScript">

function convertIt() { var centy=0;

	centy=document.Converter.centigrade.value;
	document.Converter.faren.value=centy*9/5+32;

} </SCRIPT>

is called when the user moves out of the centigrade input box (onBlur):

<form name="Converter"> Enter the Centigrade Temperature: <input type=text name="centigrade" size=10 onblur="convertIt()"></input>

Press "tab" to see the Farenheit Temperature:

<input type=text name="faren" size=10></input> </form>

HELLO!