D
Dr Joolz
Dear all, I have in the left frame some javascript that sets a href of an
<a> in the right frame.
left:
parent.right.document.getElementById("openNew").setAttribute("href",
svgDir+svg[index]+"_1.svg");
, where svgDir and svg[] are both valid and working in other javascript code
that also manipulates stuff in the right frame. but for some odd reason this
doesn't work for href...
right:
<a id="openNew" href="20031006.svg" target="_new">Open in new window</a>
I've also tried:
parent.right.document.getElementById("openNew").href =
svgDir+svg[index]+"_1.svg";
parent.right.document.links[0].href = svgDir+svg[index]+"_1.svg";
parent.right.document.anchors[0].href = svgDir+svg[index]+"_1.svg";
The <a> is the first anchor in the right html and I just can't work out why
it's not working... please help...
Thanks, Julius
<a> in the right frame.
left:
parent.right.document.getElementById("openNew").setAttribute("href",
svgDir+svg[index]+"_1.svg");
, where svgDir and svg[] are both valid and working in other javascript code
that also manipulates stuff in the right frame. but for some odd reason this
doesn't work for href...
right:
<a id="openNew" href="20031006.svg" target="_new">Open in new window</a>
I've also tried:
parent.right.document.getElementById("openNew").href =
svgDir+svg[index]+"_1.svg";
parent.right.document.links[0].href = svgDir+svg[index]+"_1.svg";
parent.right.document.anchors[0].href = svgDir+svg[index]+"_1.svg";
The <a> is the first anchor in the right html and I just can't work out why
it's not working... please help...
Thanks, Julius