Replacing target

E

Eustace

I have a webpage with 2 frames (INDEX, MAIN). The index contains links
of images that open in the main frame, like

<a target="MAIN" href="scan_01.jpg">scan_01.jpg</a>
<a target="MAIN" href="scan_02.jpg">scan_02.jpg</a>

Since target is non-compliant with HTML 4 Strict, what JavaScript code
can I use to replace it?

emf
 
T

Thomas 'PointedEars' Lahn

Eustace said:
I have a webpage with 2 frames (INDEX, MAIN). The index
contains links of images that open in the main frame, like

<a target="MAIN" href="scan_01.jpg">scan_01.jpg</a>
<a target="MAIN" href="scan_02.jpg">scan_02.jpg</a>

Since target is non-compliant with HTML 4 Strict,

you should declare and use HTML 4.01 Transitional.
what JavaScript code can I use to replace it?

Mu.


PointedEars
 
E

Evertjan.

Thomas 'PointedEars' Lahn wrote on 07 aug 2009 in comp.lang.javascript:
you should declare and use HTML 4.01 Transitional.

Or you could set an onclick listener and use window.open()
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,071
Latest member
MetabolicSolutionsKeto

Latest Threads

Top