Dynamic HTML in IE 3 ?? 
Author Message
 Dynamic HTML in IE 3 ??

Since IE 3 does not support the document property, is there another way to write
html to an open window ..... here is the code I'm trying to get to work.

    <title>Browser Test Page</title>
    <script language="JavaScript"><!--
      function BrowserDisplay() {
        alert(navigator.appName + "\n" + parseFloat(navigator.appVersion));
    <script language="JavaScript"><!--
      function BrowserCheck(TestForm) {
        var f = TestForm;
        var browser = navigator.appName;
        var version = parseFloat(navigator.appVersion);

        f.BrName.value = browser;
        f.BrVersion.value = version

        if (browser == "Microsoft Internet Explorer") {
         if (version > 1) { return true; } else { return false; }
        } else if (browser == "Netscape") {
         if (version > 1) { return true; } else { return false; }
        } return false;
    <script language="JavaScript"><!--
      function TestWindow(TestForm){
        var f = TestForm;
        var config='toolbar=no,location=no,directories=no,status=no,'
        config =

        if(!BrowserCheck(f)) {
          alert('This Browser does not support child windows');
          return false;

        var w = window.open ("","Test_Window",config);
        var d = w.document;

        d.write('  <head>');
        d.write('    <title>Test Window</title>');
        d.write('  </head>');
        d.write('  <body bgcolor="#ffffff">');
        d.write('    <div align="center">');
        d.write('      <hr width="280">');
        d.write('      <font face="Arial"><b><center>');
        d.write('      This Test Window was opened by ' + f.BrName.value + '
version ' + f.BrVersion.value + '<br>');
        d.write('      </b></center></font>');
        d.write('      <hr width="280">');
        d.write('      <form>');
        d.write('        <input type="button" name="CloseWin" value="Close This
Window" onClick="window.close()">');
        d.write('      </form>');
        d.write('      <hr width="280">');
        d.write('    </div>');
        d.write('  </body>');
        return true;
  <body bgcolor="#FFFFFF">
    <div align="center">
      <font face="Arial"><b><center>
        This is a Browser Version Test Page.
      <form name="TestForm">
        <input type="hidden" name="BrName" value="X">
        <input type="hidden" name="BrVersion" value="Y">
        <input type="button" name="BrowsChk" value="Browser Check"
        <input type="button" name="TestWin" value="Open Test Window"

Mon, 12 Mar 2001 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. VbScript / html dynamic web tree

2. Dynamic html windows

3. Netscape 4 & dynamic html

4. Create HTML Text Box Dynamic

5. dynamic HTML in internet explorer!

6. Dynamic Options in HTML-Forms

7. How to dynamic change the string color in HTML

8. Book: Dynamic HTML in Action

9. Can you create an Object with Dynamic HTML

10. Dynamic HTML Windows

11. Dynamic SELECT box in HTML

12. creating HTML element dynamic


Powered by phpBB® Forum Software