IHYPRESS PROGRAMMING
Tutorials and JavaScript programs with code and output for beginners
HOME
|
ASP
|
C
|
CSS
|
GNUPLOT
|
HTML
|
JAVASCRIPT
|
PERL
|
PHP
|
PYTHON
|
RUBY
|
SVG
First JavaScript Program
Writing a sentence in the browser's window using the
document.write
method.
The Alert Box
A simple alert box using a function and the
alert
method.
The
if
Statement
A simple example of nested
if
statements showing different outcomes depending on the visitor's local time.
The Counting Loop Statements
Simple examples of counting loops using the
while
,
for
and
do-while
statements.
The Enumeration Loop Statements
Simple examples of enumaration loops using the
for-in
,
for-of
and
foreach
statements.
The Confirmation Box
A program showing a simple example of a confirmation dialog box.
Timed Redirection
A simple redirection after a delay of 8.5 seconds.
Pop-Up Window
A simple pop-up window.
Time and Date
A simple time and date display.
String Properties and Methods
Some properties and methods that can be used on arrays.
Change Properties
Javascript changes an image on a click of a button.
Time/Date Display
Time and date display on the click of a button.
Form Validation 1
Checks a form for empty fields.
Form Validation 2
Checks a form for numeric fields.
Array Properties and Methods
Some properties and methods that can be used on arrays.
Tutorials:
JavaScript Events
List of JavaScript events.
CSS/JavaScript Properties
Complete list of CSS parameters and their corresponding JavaScript properties.
COPYRIGHT © 2015-2024 IHY PRESS Frankfurt am Main 60329 Deutschland