JavaScript and PHP Tutorials and Scripts

PHP, JavaScript, and JSON

This multi-part tutorial on PHP-JavaScript interactions describes and demonstrates the old-school approaches as well as JavaScript Object Notation (JSON). We cover JSON functions and methods provided for both PHP and JavaScript: json_encode and json_decode, JSON.stringify and JSON.parse, and more. Numerous examples are provided. Read On

Cross-Document Communication

Find out how to communicate from one document to another when using iframes. Examples show how to reference the iframe and the document inside it, how to access the containing document from within the iframe, and how to communicate from one iframed document to another. Read On

JavaScript and Forms

Find out how to use JavaScript to interact with radio buttons, select lists, checkboxes and more in this multi-part tutorial. Examples demonstrate how to perform the most common tasks for each type of form control. Read On

More JavaScript Tutorials

Our tutorials covering the methods provided for JavaScript Arrays and JavaScript Strings take a task-oriented approach. See for example, How to Convert a JavaScript Array to a String, or How to Add Elements to an Array. See also our tutorial on Data Type and Type Conversion in JavaScript as well as our popular Object Literals Tutorial, and JavaScript and Iframes Tutorial. Read On