jquery-socialist
jquery-socialist copied to clipboard
Open links in new window
Hi,
Can you modify the script so that links open in a new window?
I tried adding Target Blank but it doesn't work.
var $headDiv = $('
'), $source = $(''), $sourceLnk = $('<a href="'+itemObj.img.href+'" title="'+itemObj.link.title+' TARGET="_blank">'), $sourceLnkDiv = $(''), $apiSpan = $(''), $apiSpanLnk = $('<a href="'+itemObj.img.href+' TARGET="_blank">'), $contentDiv = $(''), $contentDivInner = $(''+itemObj.txt+'
'),
$imgLnk = $('<a href="'+itemObj.img.href+'" title="'+itemObj.link.title+' TARGET="_blank">'),
$img = $('Thanks.
I'm not sure that "opening target links in new window" would always be the desired behavior. I will investigate adding an option for this.
Yeh, I wouldn advise against changing this. Leave it up to the user to decide where they want links opened, don't try to force it. CMD/CTRL clicking is not difficult.
I Would like this to be an optional function though as my links cant open in the same window :-1: