INTRODUCTION OF CLIENT-SIDE SCRIPTING
What is client-side scripting?
- it is refers to computer programs on the web, that are executed at the client-side, by the user's web browser.
What client-side scripting can do?
- Form validation
- Display messages (eg: alert)
- Dynamically modify current document (eg: document interface)
- Animated images (eg: rollover, mouseover)
Introduction of JavaScript
- JavaScript is a client-side scripting
- Developed by Netscape
- You can write JavaScript in 2 ways :
1. Within the same file with your HTML file, OR
2. In external file with ".js" file extension.
What is JavaScript function?
- You can create function to perform specific task = user-defined function
- Function can be executed:
- Directly, OR
- Through evevnts
function helloWorld(){
alert(“Hello World!”);
}
No comments:
Post a Comment