JavaScript

What is JavaScript?  JavaScript is a client-side programming language that is recognized by all modern browsers.  It can add movement, functionality, create games and many other uses.  JavaScript is widely used across the web and can be used by phones and tablets as well as standard computers.

A Client Side Program

What this means is that JavaScript is loaded by your browser and runs completely on your own computer.  Unlike some other programs that are used in web development like PHP, it does not retrieve information from the web host server.  Some internet setups will turn off JavaScript for security reasons, and the settings in your browser can allow you to turn it off as well.  Some web pages may not load correctly or will not have the same functionality if JavaScript is turned off.

Programming with JavaScript

To create programs in JavaScript, you do not need to purchase any special software.  You can create it with any text based program such as Notepad++. You should not use word processing programs to create Javascript as they may add additional hidden characters that would cause the code to fail.

You can use pre-written javascript libraries called jQuery to add functionality to your website.  It is best to at least know the basics of JavaScript to understand the basics of what is happening with these pre-written files and for trouble shooting or customizing your application.

You may also want to use Javascript for simple tasks on your website without involving jQuery files.

What is jQuery?

jQuery is a library of JavaScript programs that are pre-written for certain JavaScript functionality.  You don't have to be a master programmer to have some fancy stuff going on with your website, you just need to use jQuery, you normally just have to set up a few parameters and meet certain HTML requirements as far as naming <div> tags, etc, and off you go. jQuery library files are often used for things such as drop-down menus, slideshows, accordions, progressbars, tabs and other fun stuff.

There is a whole section on jQuery functions on Cheat Sheet - Click Here

Visit jquery.com to get more information.

 

This is a list of the keycode numbers for JavaScript

KeyCode KeyCode
backspace 8   a 65
tab 9   b 66
enter (keyboard) 13   c 67
shift 16   d 68
ctrl 17   e 69
alt 18   f 70
pause | break 19   g 71
caps lock 20   h 72
escape 21   i 73
page up 33   j 74
page down 34   k 75
end 35   l 76
home 36   m 77
left arrow 37   n 78
up arrow 38   o 79
right arrow 39   p 80
down arrow 40   q 81
insert 45   r 82
delete 46   s 83
0 (keyboard) 48   t 84
1 (keyboard) 49   u 85
2 (keyboard) 50   v 86
3 (keyboard) 51   w 87
4 (keyboard) 52   x 88
5 (keyboard) 53   y 89
6 (keyboard) 54   z 90
7 (keyboard) 55   f1 112
8 (keyboard) 56   f2 113
9 (keyboard) 57   f3 114
- (keyboard) 173   f4 115
= (keyboard) 61   f5 116
0 (numpad) 96   f6 117
1 (numpad) 97   f7 118
2 (numpad) 98   f8 119
3 (numpad) 99   f9 120
4 (numpad) 100   f10 121
5 (numpad) 101   f11 122
6 (numpad) 102   f12 123
7 (numpad) 103   [ 219
8 (numpad) 104   ] 221
9 (numpad) 105   \ (keyboard) 220
num lock 144    ` 192
/ (numpad) 111      
* (numpad) 106      
- (numpad) 109      
+ (numpad) 107      
enter (numpad) 13      

78910

Subcategories

Below is a list of standard methods, functions, commands, etc. that are built-in to the javascript code.  When creating your own function, do not use these names for the function.