Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: function invoke

  1. #1
    New to the CF scene
    Join Date
    Sep 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    function invoke

    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)

    {

  • #2
    Senior Coder xelawho's Avatar
    Join Date
    Nov 2010
    Posts
    2,989
    Thanks
    56
    Thanked 557 Times in 554 Posts
    Code:
    js:
    document.getElementById("hitstextbox").value=hits;
    
    html:
    <input type="text" id="hitstextbox">
    etc


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •