Rick, Rick, He's Our Man

Over at Found on the Web, I've made my first April Fool's joke. As you might expect, it's Rick-Roll related.

Here's the Javascript I used:


<script type="text/javascript" language="javascript">
var links = document.getElementsByTagName("a");
for (var i=0; i < links.length; i++)
{
links[i].onclick = function()
{
location.href="http://www.youtube.com/watch?v=oHg5SJYRHA0";return false;
};
}
</script>

It gets every hyperlink on the page, loops over them, and adds an onclick event handler that performs the redirect.

About this Entry

This page contains a single entry by bbrown published on April 1, 2008 12:50 AM.

A Future of Architecture was the previous entry in this blog.

Earth Hour Can Bite My Ass is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Feedback to