Create a new JavaScript file using your favorite editor or IDE
Add the following source code to your file (original source here)
/**
* A simple "Hello, World!" example of a Client Script. Uses the `pageInit`
* event to write a message to the console log.
*/
function pageInit(type) {
console.log("Hello, World from a 1.0 Client Script!");
}
Save the file as hello-world.js
wherever you wish
hello-world.js
as the Script FilepageInit
in our source file to the Page Init script event by entering pageInit
in the Page Init Function field