Normal place in the <head> or right before the </body>
If before the body, when the page loads, the script won't stop unexpectedly as the page loads.
Use explicit end tag with script.
<script text> </script>
Back
Java Script
Front
A scripting language that controls actions on the page.
Runs within the web browser.
It's based on events such as a click or page load.
Object oriented with methods and objects
Back
Java Scripts Capabilities
Front
Manipulate Styles
Manipulate Content
Communicate with Web Server
Back
return
Front
same as java
Back
Events
Front
These events happen as user interacts with page.
Example of Common Events:
Load event- page loads
Click event-
submit event-
change event-
Back
if else statements
Front
the same as java
Back
function
Front
Back
jQuery
Front
A java script library
$ always a jquery object
Back
Event Attributes
Front
Back
CDN
Front
Content Delivery Network
Host free javascript libraries
1. It simplifies our lives: it references at java script url. Same with CSS themes and urls
2. Better for users, distributes files in multiple locations across the world.
3. Increases Parallelism: it sorts through the html and finds them in parallel rather than individually.
Back
Java Script Console
Front
Back
this
Front
refers to the instance of the object
Back
Regular Expressions
Front
Allow us to set up rules for matching strings
You can check for special characters.
Back
false
Front
a boolean condition that determines an action
Back
dom methods
Front
Document object methods
Back
Unintrusive Java Script
Front
Separation
Progressive Enhancement
Back
fadein/fadeout
Front
allows for windows or elements to fade in or fade out when selected.
It helps users understand what was selected and what wasn't
Back
DOM
Front
Document Object Model
Back
onLoad
Front
Back
fadeout/fadein
Front
jquerry option that slowly allows the block to fade in or fade out
Back
check/uncheckall
Front
can check or uncheck all boxes
Back
onsubmit
Front
use to attach a validation to an event
use if statments
Back
DOM Methods
Front
createElement
createTextNode
.appendChild
Back
Minification
Front
jquery.1.12.1.min.js
min means that comments and white space are removed
This is not the same a compression
Back
Form Validation
Front
Back
stripeTable
Front
Back
onclick = " "
Front
An event attribute that works when the user clicks on something.
Back
display
Front
to show elements on the java page use
display - 'block'
Back
Body
Front
Back
ECMAScript and JavaScript
Front
The standard for java script.
The organization responsible for evolving java script.