[l2h] htmladdnormallink and TARGET ?

Ross Moore ross@ics.mq.edu.au
Mon, 3 Sep 2001 11:57:28 +1000 (EST)


> Is it possible to use \htmladdnormallink{...}{...} specifying the type
> of TARGET ("main" instead of "top", or "_blank" to open a new window?
> -- 

Yes.

I regularly use a macro definition as follows:

\newcommand{\newtargetlink}[2]{%
 \htmladdnormallink{#1}{#2" target="_new}}

Note the use of "...." to fit snugly with the quotes
that \htmladdnormallink will provide.

Once you have opened the "_new" window, clicks on hyperlinks
with the same "_new" target will update that window.



Hope this helps,

	Ross

PS.
this will *not* work with  frames.pl for links within the same
document, since the  target  attribute is already set automatically.
However, it should work just fine for links to external pages,
asking for a new target window.


> 
> ------------------------------------------------------------------------
>   Daniel Taupin, 91400 ORSAY - France
>   E-mail= mailto:taupin@lps.u-psud.fr
>   Home/fax: (33)1.60.10.26.44. Work: (33)1.69.15.60.79, fax
> (33)1.69.15.60.86
> _______________________________________________
> latex2html mailing list
> latex2html@tug.org
> http://tug.org/mailman/listinfo/latex2html