w3schools
  
HOME HTML CSS XML JAVASCRIPT ASP PHP SQL MORE...   References Examples Forum About

JavaScript Functions

« Previous Next Chapter »

The top-level properties and functions can be used with all the built-in JavaScript objects.


Top-level Functions

F: Firefox, IE: Internet Explorer

Function Description F IE
decodeURI() Decodes a URI 1 5.5
decodeURIComponent() Decodes a URI component 1 5.5
encodeURI() Encodes a URI 1 5.5
encodeURIComponent() Encodes a URI component 1 5.5
escape() Encodes a string 1 3
eval() Evaluates a string and executes it as if it was script code 1 3
isFinite() Checks if a value is a legal number 1 4
isNaN() Checks if a value is not a legal number 1 3
Number() Converts an object's value to a number 1  
parseFloat() Parses a string and returns a floating point number 1 3
parseInt() Parses a string and returns an integer 1 3
String() Converts an object's value to a string 1  
unescape() Decodes a string encoded by escape() 1 3

JavaScript Constants

Function Description F IE
Infinity A numeric value that represents positive/negative infinity 1 4
undefined Indicates that a variable has not been assigned a value 1 5.5

« Previous Next Chapter »


DreamTemplate


W3Schools Certification

W3Schools' Online Certification Program

The perfect solution for professionals who need to balance work, family, and career building.

More than 4000 certificates already issued!

The HTML Certificate documents your knowledge of HTML, XHTML, and CSS.

The JavaScript Certificate documents your knowledge of JavaScript and HTML DOM.

The XML Certificate documents your knowledge of XML, XML DOM and XSLT.

The ASP Certificate documents your knowledge of ASP, SQL, and ADO.

The PHP Certificate documents your knowledge of PHP and SQL (MySQL).

WEB HOSTING
Best Web Hosting
PHP MySQL Hosting
Top 10 Web Hosting
UK Reseller Hosting
Web Hosting
FREE Web Hosting
Top Web Hosting
Windows Hosting
WEB BUILDING
XML Editor – Free Trial!
FREE Flash Website
FREE Web Templates
FLIGHT TICKETS
Find the cheapest flight
to any destination now!
EDUCATION
US Web Design Schools
HTML Certification
JavaScript Certification
XML Certification
PHP Certification
ASP Certification
STATISTICS
Browser Statistics
Browser OS
Browser Display