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;
}