By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,984 Members | 997 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,984 IT Pros & Developers. It's quick & easy.

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

P: 1
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:
Expand|Select|Wrap|Line Numbers
  1. <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
Aug 29 '18 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.