[thelist] Does Window-Target work in IE?
Peter-Paul Koch
gassinaumasis at hotmail.com
Thu Jan 17 07:21:28 CST 2002
>I am trying to use Window-Target to direct my CGI output to a certain
>frame,
>or to the whole browser window (and eliminate the frames) depending on the
>output.
>
>From what I have read, this should work:
>print <<"STOP";
>Content-type: text/html
>
><html>
><header>
><META HTTP-EQUIV="Window-target" CONTENT="DataFrame">
></header>
><body>
>
>as well as this:
>print <<"STOP";
>Window-Target: DataFrame
>Content-type: text/html
I knew about the second method, but not about the first. The second one
works only in Netscape, as far as I know.
>I have tried each method (and both together even) and this line:
><META HTTP-EQUIV="Window-target" CONTENT="DataFrame">
>seems not to work at all, neither NS 4.7 nor IE 5.5. This line:
>Window-Target: DataFrame
>works very nicely in NS 4.7 but not in IE5.5. This website is actually
>targeted at IE5.5 and not at NS. I tested just to see if I had the syntax
>correct.
>
>So my question is, how can I direct my output to the DataFrame or to
>_parent?
By setting the target of the FORM before it's submitted:
<FORM TARGET="DataFrame" etc.>
or
document.forms[0].target = 'DataFrame';
ppk
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.
More information about the thelist
mailing list