JQuery ready Show Epoch Using void Function

JQuery ready Show Epoch Using void Function

 

This demonstrates how to use JQuery to show the computer epoch when the web page is loaded. It shows calling the void helloWorld() function on line 15. That function also takes no arguments. On line 24 in the helloWorld() function JQuery select the #resultsDiv element on line 47 and updates its content using the JQuery html method. For beginners learning Javascript and JQuery.

Sample Console Output

Sample Console Output

Testing to See If It Works

Open a web browser console window supports the console object for this example. In that console window you will see messages from the Javascript to help you understand what code is being executed.

If your console window was not enabled when you opened this page, then enable and refresh/reload this page to see again.

JQuery Page for Latest Version Download and CDN