Bookmarklet for validator

Hello,

I've written a bookmarklet, i. e. a little Java Script program that can be 
saved in the bookmarks, e. g. in the "Personal Toolbar Folder". When you 
start this bookmark, the current page is validated the W3C validator without 
having to enter the URL/URI. This works only with files on servers, not with 
locally stored files (file:///...).

The code is (very simple):

javascript:window.open("http://validator.w3.org/check/referer?"+document.location.href);self.load(location.href);

The last command is just for preventing the browser to display just [object 
window] in the originating window.

The bookmarklet works on Netscape 4.7, Mozilla 0.9, Opera 5.0 (at least on 
Linux)

You can publish it on the W3C pages if you like as it makes checking pages 
easier when they don't have the validator check link on the page (that 
doesn't always fit into the layout).



Jens-Erik Weber

Received on Monday, 4 June 2001 04:41:01 UTC