Subscribe: Latest Random JavaScript Tips
Preview: Latest Random JavaScript Tips

Latest Random JavaScript Tips

Doc JavaScript's Tip of the Day Archive

Copyright: Copyright (c) 2012 QuinStreet Inc. All rights reserved.

DHTML Behavior Refresher (8/1/2001)
Do you remember what behaviors are? Have you used them before? Learn about the roles of DHTML behaviors with other programming languages.

Accessing String's Characters (2/27/2000)
Most programming languages use array notation to access individual characters of a string. Learn how JavaScript does it.

The @media Construct (6/18/2000)
Have you customized your CSS rules for particular device types? Learn how to use the @media construct, and how many different medias are supported.

Entire-Page Rollover Effects (2/21/2000)
Do you know how to change the color of all the page's links on a mouseover? Learn how to extend the single-link text rollover effect to the entire page.

Using Current Context to Search for DOMDocument Nodes (3/11/2002)
Do you know how to select nodes at a given context? Learn how to use the "./" notation to specify the current context.

Using Frames in a Memory Game Board (4/11/2000)
How would you implement an 8x8 memory game board? Learn how we used column and row frames for it.

Special Windows Targeting (4/16/2000)
Can you name all special target windows? Learn about _blank, _parent, _search, _self, and _top.

Deriving HTML+TIME's Active Time (10/11/2000)
Do you know how to extract HTML+TIME's active time? Learn how to use the currTimeState object.

Passing Parameters in JavaScript (2/10/2001)
What's the difference between passing a parameter by value and passing by reference? Learn why you cannot change a variable by modifying it inside a function.

Accessing the Document's Root (7/14/2001)
Descending the DOM tree, how can you go back to the root in one hop? Learn how to use Internet Explorer 6's new property.

Server-Side Includes (1/9/2000)
Ever wanted to put the server date on your page? Learn how to implement server-side includes with Perl.

Extending a Class to a Web Service (7/3/2002)
Do you know how to extend a class to a Web service? Here are the five steps you need to follow.

Escaping Frames (4/4/2000)
Do you know how to prevent your page from loading in someone else's frame? Learn how to use escape frames.

Reading an Attribute Node in IE6 and NS6 (7/3/2001)
Do you know how to read out an attribute node? Learn how similar it is to reading an attribute object.

Printing A Document with TemplatePrinter (9/8/2001)
Do you know how to print a document with TemplatePrinter? Learn how to use the templatePrinter's methods to start, end, and complete a print job.