View Single Post
Old 10-09-2008, 04:52 PM  
calmlikeabomb
Confirmed User
 
calmlikeabomb's Avatar
 
Join Date: May 2004
Location: SW Palm Bay, Florida
Posts: 1,323
so why do you wanna do this..?

http://calmdev.com/gfy/click.php

i wouldn't suggest using js for the task, but it's possible...

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <title>Intercept Click</title>
    <script type="text/javascript" src="http://assets.fit.edu/src/js/jquery/jquery.js"></script>
    <script type="text/javascript">
    $(document).ready(function(){
        $('a').click(function() {
            document.location = 'http://' + $(this).attr('href');
            return false; 
        });
    });
    </script>
</head>
<body>
    <a href="www.google.com">Google</a>
</body>
</html>
__________________
subarus.
calmlikeabomb is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote