Created
April 13, 2012 00:00
-
-
Save wilornel/2372007 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <head> | |
| <script type="text/javascript"> | |
| function executeAnother(theFunc){ | |
| // execute some other function | |
| theFunc; | |
| alert ('this: ' +working1()); // Here I am just testing the return of my other function | |
| } | |
| function working1(){ | |
| console.log('console.log works'); | |
| console.log('expecting hey: ' +strings()); | |
| return "workinggg"; | |
| } | |
| function strings(){ | |
| return "hey"; | |
| } | |
| </script> | |
| </head> | |
| <body> | |
| <input type='submit' value=' button ' onclick='executeAnother(working1())'/> | |
| </body> | |
| </html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment