How do I pass a target, _blank, to the js link method?
x = "my link to google"
x.link("www.google.com")
<a href="www.google.com">my link to google</a>
if its not possible is there an alternative method I could use?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can’t; the
String.linkmethod is ancient and mostly deprecated. Construct the link using DOM methods instead:Either that, or just build up the string yourself.
String.linkisn’t doing much anyway.