!
<!-- 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
I started this blog as a personal notepad, but it seems I'm getting more and more hits. Since people are reading this I starting sharing anything that I find interesting or usfull. I'm currently dedicating my time to expanding my knowledge into the more modern languages and ideas. If you find this information useful or a waste of your tome let me know by leaving commits or using the google +1 function at the bottom of the post. Thanks for viewing Daniel Haro
Showing posts with label CHEAT SHEET. Show all posts
Showing posts with label CHEAT SHEET. Show all posts
Tuesday, August 14, 2012
Subscribe to:
Posts (Atom)