With the wealth of knowledge and the quality of scripts being written, you can add sophisticated interaction to your website-even if you’re a beginner. There’s never been a better time to learn JavaScript. In the past several years, JavaScript has undergone a rebirth, fueled by high-profile websites like Google, Yahoo!, and Flickr, which use JavaScript extensively to create interactive web applications. You’ll learn how to overcome browser incompatibilities in this book.) (There are still a few incompatibilities among current web browsers, so you’ll need to learn a few tricks for dealing with cross-browser problems. The programs you create with JavaScript can range from the really simple (like popping up a new browser window with a web page in it) to full-blown web applications like Google Docs ( ), which lets you create presentations, edit documents, and build spreadsheets using your web browser with the feel of a program running directly on your computer.Īfter Netscape introduced JavaScript, Microsoft introduced jScript, their own version of JavaScript included with Internet Explorer.įortunately, the worst of those days is nearly gone and contemporary browsers like Firefox, Safari, Chrome, Opera, and Internet Explorer 11 have standardized much of the way they handle JavaScript, making it easier to write JavaScript programs that work for most everyone. Google Maps, on the other hand, works without page refreshes-it responds immediately to your choices. While there were plenty of map sites before Google, they always required reloading multiple web pages (usually a slow process) to get to the information you wanted. Google Maps lets you view a map of your town (or pretty much anywhere else for that matter), zoom in to get a detailed view of streets and bus stops, or zoom out to get a bird’s-eye view of how to get across town, the state, or the nation. If you’ve visited Google Maps ( ), you’ve seen JavaScript in action. Because it doesn’t rely on constantly loading and reloading web pages, JavaScript lets you create web pages that feel and act more like desktop programs than web pages. JavaScript doesn’t suffer from the frustrating delay associated with server-side programming languages like PHP, which rely on communication between the web browser and the web server. It lets web pages respond instantly to actions like clicking a link, filling out a form, or merely moving the mouse around the screen. Or add something useful and attractive, like pop-up tooltips that provide supplemental information for items on your web page ( Providing Information with Tooltips).Īnother one of JavaScript’s main selling points is its immediacy. Or you can do something more subtle like stuff more information on a page without making it seem crowded by organizing content into bite-size panels that visitors can access with a simple click of the mouse ( Adding Tabbed Panels). For example, with JavaScript, you can transform a static page of thumbnail images into an animated slideshow. JavaScript also lets you create fun, dynamic, and interactive interfaces. JavaScript can produce an error message immediately after someone attempts to submit a web form that’s missing necessary information. For example, a JavaScript-powered shopping cart page can instantly display a total cost, with tax and shipping, the moment a visitor selects a product to buy. JavaScript can make web pages more useful by supplying immediate feedback. JavaScript is a programming language that lets you supercharge your HTML with animation, interactivity, and dynamic visual effects.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |