Open button link in new tab (pre-made page, URL not in <>)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • BrandonJ
    New Member
    • Aug 2018
    • 1

    Open button link in new tab (pre-made page, URL not in <>)

    Hi there,

    I know the obvious ad: target="_blank" after a url, but its a pre-made page that I am editing and you just ad the url onto a blank link with no <> and the page grabs it and inserts it where need be.

    Later in the page is this code for a button:
    Code:
    <button id="surveyAgree" data-tracking-suffix="<?php echo $buttonClickTrackingSuffix; ?>" class="stepButton yesBtn" onclick="<?php echo $onclick; ?>">I AGREE!</button>
    Is there somewhere there that I can ad something to make it open in a new tab, or does the css have to be edited?

    OR could I just replace the script that is grabbing the URL with the actual URL?

    OR is there something I can add to the URL? as I mentioned it's just on a line by itself, not inside <> so it is just like:



    Thanks for having a look!

    Much appreciated
    BrandonJ
    Last edited by zmbd; Aug 31 '18, 01:46 PM. Reason: [z{please use the [CODE/] format tool when posting code, script, or tables}]
Working...