JavaScript Guidelines
Some other important things to know when scripting with JavaScript.
JavaScript is Case Sensitive
A function named "myfunction" is not the same as
"myFunction" and a variable named "myVar" is not the same as
"myvar".
JavaScript is case sensitive - therefore watch your capitalization closely
when you create or call variables, objects and functions.
White Space
JavaScript ignores extra spaces. You can add white space to your script to make
it more
readable. The following lines are equivalent:
name="Hege"
name = "Hege"
|
Break up a Code Line
You can break up a code line within a text string with a backslash. The example below will be displayed
properly:
document.write("Hello \
World!")
|
However, you cannot break up a code line like this:
document.write \
("Hello World!")
|
Comments
You can add comments to your script by using
two slashes //:
//this is a comment
document.write("Hello World!")
|
or by using /* and */ (this creates a
multi-line comment block):
/* This is a comment
block. It contains
several lines */
document.write("Hello World!")
|
What do you want your Web site to do?

What do you want your Web site to do? Ektron CMS400.NET lets you do everything you need to do on the Web and do everything you want to do.
Ektron CMS400.NET gives you all the features you would expect from an
enterprise CMS, but also high-demand functionality like real-time Web
site analytics, community building, blogging, personalization, and
online calendars. Ektron CMS400.NET bridges your Web site gaps.
Use Ektron CMS400.NET for:
- Content & Document Management - Author/edit content, manage navigation, menus, audit trails, workflow, approvals
- Personalzation & Portal Support - Allow visitors to create their own view of your web page
- 508 & W3C Compliance Checker - Ensure compliance with scheduled or on-demand compliance reports
- Memberships - Build online communties with blogs and forums, enable email web alerts, build polls and surveys
- Web Site Analytics - track visitors, report on most requested pages, see where they came from and where they are going
- HTML Form Engine - Create a two-way dialog with visitors using our wizard-like HTML form-building engine with validation and database support
- Multilingual Support - Integrated translation tools help you reach multiple audiences by speaking their language
- Online Calendars - Build and manage Web-based calendars and enable users to customize a view based on what’s important to them
See why there are 15,000+ Ektron integrations worldwide.
Click here to learn more, then request a live online demo or download a FREE TRIAL
 |
|
Get Your Diploma!
W3Schools' Online Certification Program is the perfect solution for busy
professionals who need to balance work, family, and career building.
The HTML Certificate is for developers who want to document their knowledge of
HTML, XHTML, and CSS.
The ASP Certificate is for developers who want to document their knowledge of
ASP, SQL, and ADO.
|
|