View Full Version : createElement

12-13-2010, 10:04 PM
I'm trying to create a new link element using JS but using the following code:

writeCredits : function () {
if (this.credits) return;
this.credits = hs.createElement('a', {
href: hs.creditsHref,
target: hs.creditsTarget,
className: 'highslide-credits',
innerHTML: hs.lang.creditsText,
title: hs.lang.creditsTitle
overlayId: this.credits,
position: this.creditsPosition || 'top left',
hsId: 'credits'

It has the target but can I add anything to the createElement to make it open in a new window? Thanks for the help.

This opens up in my current

rnd me
12-13-2010, 10:25 PM
set target to "_blank"