JavaScript tidy

Navigation

Skip navigation.

Site search

Site navigation

This script

Description

Tidies JavaScript to put in the correct indents, linebreaks, and semi-colons.

Browser support

Internet Explorer 4+Code cannot be tidied
Opera 7+Script works as expected in 9.2- but not 9.5+
Gecko engine browsers (Mozilla, Firefox, Netscape 6+, etc)Nested functions are not tidied (so most scripts remain unreadable)
KHTML/WebKit (Konqueror, Safari, OmniWeb 4.5+, iCab 4+)Works in all except Konqueror 2 and below
iCab 3-Code cannot be tidied
Rhino + W3C DOM (ICEbrowser)Script works as expected
Rhino + layers/W3C DOM (Escape/Evo, iBrow)Code cannot be tidied
NetFront 3+Code cannot be tidied
Opera 5 and 6Code is corrupted
Netscape 4Browser does not suppot try...catch, used by the script
OmniWeb 4.2-Code cannot be tidied
Rhino + pDOM (Clue browser)Script does not run
WebTVBrowser does not suppot try...catch, used by the script
Tkhtml Hv3+Tidied code contains many syntax errors
Netgem NetBoxNot tested but it should work
OpenTVNot tested but it should work
iPanel MicroBrowserNot tested but it should work

Accessibility notes

Utility script - no accessibility notes.

License

Please see my terms and conditions page for terms and conditions of use.

This site was created by Mark "Tarquin" Wilton-Jones.
Don't click this link unless you want to be banned from our site.