Pseudo Link

by Tgwizman

HTML

<q link="http://google.com">This is a link to http://google.com</q>

JavaScript

q = document.querySelector('q');

q.style.cursor = 'pointer';
q.style.textDecoration = 'underline';
q.style.color = 'blue';

q.onmousedown = function() {
    q.style.color = 'red';
};

q.onmouseout = function() {
    q.style.color = 'blue';
};

q.onclick = function() {
    window.open(q.getAttribute('link'));
};