Hi.

I have a loop, but I am having difficulty in one major key area and one in a minor area:

MAJOR
- I need to be capable of seeing what I am printing online or in a text document (either is fine). Right now, I see the result only in the firefox console.

MINOR
- I would like to be capable of telling my loop exactly where to start (for example, at aaa or btk).

This is the code I have:


HTML Code:
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>
</head>

<body>


    <div id="entire_form">
        <form name="form_name" action="#" onsubmit="return returning_form()" id="mortage_form">
                                
            <button type="submit" id="submit_button" name="submit_button" class="submit" value="Submit for calculation">Calculate</button>				
    
        </form>
                <div id="results">
                </div>

</body>
</html>

Code:
 <script>
    function returning_form(){
    
    /////////// BEGINNING OF GLOBAL VALIDATION //////////////

    var valid = true;

    ////////// FINAL VALIDATION GREEN //////////////

    if (valid == true){
        
    var chars = "abcdefghijklmnopqrstuvwyxz";
    
    for(var a = 0; a < chars.length; a++) {
        for(var b = 0; b < chars.length; b++) {
        for(var c = 0; c < chars.length; c++) {
        console.log(chars[a] + chars[b] + chars[c]);
        var mytable =''
            mytable += '';	
            }
        }
    }
    
            $('#results').append(mytable);
    }
    
    
    /////////////////////// RETURN FALSE! ////////////////////////
        return true;
    
    //// CLOSING THE ORIGINAL FUNCTION CALLED returning_form /////
        
    }
    
            
    </script>