open link in new tab with JS or Jquery [duplicate]

0

I set up a site using Mobirize and it has a Facebook icon that when clicked you share the site in your face as a post. I would like it instead to open a new tab with a specific page of Facebook. In the case what opens the popup is the code   popupUrl: 'https://www.facebook.com/sharer/sharer.php?u={url}',

code:

var services = {
    facebook: {
        // https://developers.facebook.com/docs/reference/fql/link_stat/
        counterUrl: 'https://graph.facebook.com/fql?q=SELECT+total_count+FROM+link_stat+WHERE+url%3D%22{url}%22&callback=?',
        convertNumber: function(data) {
            return data.data[0].total_count;
        },
        popupUrl: 'https://www.facebook.com/sharer/sharer.php?u={url}',
        popupWidth: 600,
        popupHeight: 359
    },
    
asked by anonymous 07.11.2016 / 19:39

1 answer

0

I discovered, I had to update this code for this:

var services = {
    facebook: {
        // https://developers.facebook.com/docs/reference/fql/link_stat/
        counterUrl: 'https://graph.facebook.com/fql?q=SELECT+total_count+FROM+link_stat+WHERE+url%3D%22{url}%22&callback=?',
        convertNumber: function(data) {
            return data.data[0].total_count;
        },
        window.open: 'https://www.facebook.com/dungeongamebar',
        popupWidth: 600,
        popupHeight: 359
    },
    
07.11.2016 / 19:45