Inline JavaScript



Inline JavaScript is JavaScript code that is typed directly into an event property in the Visual Designer rather than defined in an external .js file. Inline JavaScript is most appropriate when you only need to utilize one or just a few lines of code to perform the desired action.

Example:

The following example sends a response to the server using 2 simple lines of JavaScript code on a button’s onclick event.