...

View Full Version : function invoke



jsmiracles
09-10-2011, 03:01 PM
hi good people,

need some clues with the code just dont know where to start:

/*
* The function displays text in the document's gameForm
* text input fields.
*
* The function takes 4 arguments:
* hits is displayed in the hitsTextBox.
* The characters in hits are separated by spaces.
*
* misses is displayed in the missesTextBox.
* Any space characters in misses
* are substituted with the string '(space)'.
*
* lives is displayed in the livesTextBox.
*
* term is displayed in the termTextBox.
*
* definition is displayed in the definitionsTextArea.
*
* The function has no return value.
*/
function updateGameForm(hits, misses, lives, term, definition)
{

xelawho
09-10-2011, 05:27 PM
js:
document.getElementById("hitstextbox").value=hits;

html:
<input type="text" id="hitstextbox">
etc



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum