...

View Full Version : createElement



treeleaf20
12-13-2010, 10:04 PM
Hello,
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
});
this.createOverlay({
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"



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum