javascript - Is there any method to insert link in between string -
i need insert link inside string. this...
var txtarea="this link "+www.abcd.com\contacts+ ";
the string+link stored in variable 'txtarea' send webpage using post method.
you can use link() approach:
var url = "http://www.abcd.com/contacts"; var txtarea = "this link: " + url.link(url); document.write(txtarea);
Comments
Post a Comment