!
<!-- script goes here //--> #this format will hide the script from the user
A
action =[url] #Specifies where to send the form-data when a form is submitted
B
boxes # pops up a box for the user to interact with
types
alert #alert("sometext"); use to alter user they missed something
confirm#comfirm("some text"); use to confirm something
prompt#prompt("some text",defaultValue)
example# var userName=prompt("Please enter your name","Harry Potter");
Break in line #<br /> #add a line break
button # creates a button user can interact with
Sub Types
#button
#<button type="button" onclick="myFunction()">
button methods # used to program the button
#onclick
#<button type="button" onclick="myFunction()">
D
document #javascript class with many function
functions
.getElementById #access html element
#document.getElementById("demo").innerHTML="My First JavaScript";
.write # write directly into the html document
#document.write("<p>My First JavaScript</p>");
F
<form> Creates a form for the user to enter data
function <function name> #design your own java Script function f
#function myFunction(){code goes here}
I
id " " id html element
#<p id="demo">My First Paragraph</p>
input type = "type goes here "#create a moduel the user can interact with
#button
R
return #used to return a value at end of a function
S
scr = "scriptname.js" # points and loads external java script file
<script> Insert Java Script
<script type =" script type">
#text/javascript
U
<ul> #unordered list
#followed by several <li> # list item
V
value # assign a value to a button (value is usally a string of text)
var [var name] # declare a variable
This particular blog is really awesome as well as informative.
ReplyDelete