Tap for Menu

Display Code!

The below code can be copy and pasted! Simply hold and copy! Have fun editing this code and playing!

Basic HTML Structure

<HTML>
    <head>
            	       
    
   </head>
                    
         <body>
                    
         </body>
                 
<HTML>            
               

Basic HTML w/ jQuery

<HTML>
    <head>
              <script src="http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.js"> </script>
              <script src="http://code.jquery.com/jquery-1.9.1.min.js"> </script>
                      <link rel="stylesheet" href="http://code.jquery.com/mobile/git/jquery.mobile-git.css />
    </head>
                    
         <body>
                    
         </body>
                 
<HTML>            
               

First Functions

<HTML>
    <head>
            <script>
                
                function getname() {
                var name=prompt("what is your name?"); 
                alert("Your Name Is: " + name);
               }
                
            
           
           
           </script>
    </head>
                    
         <body>
                  
                   <p> The below buttons will ask for a name, then show it.
                  <br> <button onclick="getname()">Get Name</button>
                
         
         </body>
                 
<HTML>            
               

Array Fun

<HTML>
    <head>
            <script>
                
                var names = [
                "Jake",
                "Lydia",
                "Noah"
                ];
                
                function getnum () {
                    var num = prompt("Enter a Number");
                    alert(names[num]);
                
            }
           
           
           </script>
    </head>
                    
         <body>
                  
                   <p> Have fun with Arrays.
                  <br> <button onclick="getnum()">Execute</button>
                
         
         </body>
                 
<HTML>            
               

Many more examples coming soon! Email me and sugget and example!