Opening Links via javascript


#1

I was wondering how (and if it is possible) to open hyper-links useing javascript and is so how do you do it?

Thanks- awk888 :slight_smile:


#2

you can manipulate url, so is possible:


#3

jQuery/JavaScript

$('a').on('click',function(e){
    e.preventDefault(); // stops execution of event
    // link/redirect
    window.location = $(this).attr('href');
})

#4