/Ugly/ + 'JavaScript'

A place for ugly, silly, or just-plain-crap JavaScript.

Links plus

Working on a recent project I kept coming across anchor tags like this:

<a href="#" onclick="visit_url(<?php echo $url; ?>)">

I was really curious as to what visit_url() would do, eventually I found it:

function visit_url(url) {
    window.location = url;
}
Posted by Gavin Logan (@tamewhale) on 13 Oct 2011 | linky

Subscribe or follow @UglyJS!
.........
Fork then send a pull request to contribute.