V
Vincent van Beveren
I have the following (seemingly) useless piece of JavaScript
<html>
<head>
<script type="text/javascript">
function frameMe() {
s = "document.open();";
s += "document.writeln('<html><frameset rows=\"*,33%\">');\n";
s += "document.writeln('<frame src=\"' + document.location +
'\">');\n";
s += "document.writeln('<frame src=\"about:blank\">');\n";
s += "document.writeln('</frameset></html>');\n";
eval(s);
}
</script>
</head>
<body>
<input type="button" onClick="frameMe();" value="Frame me! (again?)">
</body>
</html>
Now, in Firefox this works fine, but in IE, it doesn't. Does anyone
know why, and if it can be helped?
Thanks,
Vincent
<html>
<head>
<script type="text/javascript">
function frameMe() {
s = "document.open();";
s += "document.writeln('<html><frameset rows=\"*,33%\">');\n";
s += "document.writeln('<frame src=\"' + document.location +
'\">');\n";
s += "document.writeln('<frame src=\"about:blank\">');\n";
s += "document.writeln('</frameset></html>');\n";
eval(s);
}
</script>
</head>
<body>
<input type="button" onClick="frameMe();" value="Frame me! (again?)">
</body>
</html>
Now, in Firefox this works fine, but in IE, it doesn't. Does anyone
know why, and if it can be helped?
Thanks,
Vincent