MyZDNet | Reviews | Shop | Business | Help | News | Electronics | GameSpot | Tech Life | Downloads | Developer
PC Magazine
Free downloads
 
Update your software
 
WORM: "Love" danger

 
ZDNet > Reviews > PC Magazine > Solutions > User-To-User > JavaScript Bookmarklets
 

 
Click Here for Demo
 

 
Search For:            • Search Tips
• Power Search
 
 

PC Magazine

Solutions
Hardware
Software
Internet
Mobile
Business
User-to-User
Utilities


ASPs
LINUX
SECURITY

micronpc.com

 

JavaScript Bookmarklets

November 15, 1999

You've heard of applets and scriptlets, but have you encountered bookmarklets? A bookmarklet is a tiny JavaScript program that fits completely within the URL of a bookmark. Building on a concept suggested in Netscape's JavaScript Guide, JavaScript enthusiast Steve Kangas has assembled a collection of over 150 bookmarklets for Netscape and IE, available free at www.bookmarklets.com. If you see one you like, just add it to your bookmarks collection.

When you launch a bookmarklet, it runs in the context of the browser. Standard objects like screen, document, and location give it access to useful information. Here's an example:

javascript:void (location.
href=location.href.
substring (0, location.href.
substring (0, location.href.
length-1).lastIndexOf
('/')+1))

The bookmarklet above navigates one directory up from the current URL.

You'll be surprised at the power packed into these tiny programs. There's one to highlight all occurrences of a given word on a page, for example, as well as a mathematical expression evaluator. Another displays the stored cookie for the current site. There's even a bookmarklet editor in the form of a bookmarklet! It takes Java Script expertise to write bookmarklets, but anybody can use them.—NJR

Search: 



 
 
 
WORM ALERT
A destructive e-mail worm called ILOVEYOU is sweeping across the world. Get updates and advice now.
 
E-mail this story!
Printer Friendly
 Hands-On
  Stay on top of all the latest product announcements with Hands-On, Bill Machrone's free e-mail alert.


Read Bill's latest




 Sponsored Links
ThirdVoice  Your Personal Web Assistant - Brings the Web to you!
PrivacyGuard  Get a Free copy of your personal credit report!
Win 2000  The New Solution Center: News, Reviews and More!
Netmarket  Get 2 Free Movie Tickets When You Try Netmarket.com
Books  Mother's Day is May 14th! Buy Gifts at B&N.com!
NEW PC  ClientPro Cf - 433MHz w/ 4 GB hard drive, under $1000!
 
 Intel Manufacturer Showcase    Need More Help?
Shop Now!   Shop at Dell's Home Solution Center - Shop Now. Click Here!
 
 ZDNet Featured Links
Free Stuff  Join ZDNet and get free voicemail, e-mail, downloads & more!
NEW!  Shop the Outlet Store for best buys on computer products
IT Center  New for IT professionals: Downloads, news, reviews & more
 
 Magazine Offers
Must Click  Get Instant Access to the Top 100 Sites
 

Tech Jobs |  Digital Coupons |  Free E-mail |  Newsletters |  Updates |  MyZDNet |  Alerts |  Rewards |  Join ZDNet |  Members |  ZDNet eCircles
Feedback |  Your Privacy |  Service Terms |  Ad Info
Copyright © 2000 ZD Inc. All rights reserved. ZDNet and the ZDNet logo are trademarks of ZD Inc.