<html> <head> <title>Example, WebCGMNode interface</title> <script type="text/ecmascript"> function getNodeType(evt) { var webcgm = document.getElementById('ivx1').getWebCGMDocument(); if( webcgm ) { var pic = webcgm.firstPicture; if( pic ) { var elem = document.getElementById('result').lastChild; var text = elem.nodeValue; text = text + pic.nodeType; elem.nodeValue = text; } } } </script> </head> <body onload="getNodeType()"> <table border="1" rules="cols" width="480"> <tr style="text-align:center;"> <th>Example, WebCGMNode interface</th> </tr> <tr> <td><object id="ivx1" data="ex_Node.cgm" type="image/cgm;Version=4;ProfileId=WebCGM" width="480" height="360"></object> </td> </tr> <tr style="text-align:left;" > <td id="result">The <strong>WebCGMNode.nodeType</strong> value of...<br/><em>getWebCGMDocument().firstPicture</em> is: </td> </tr> </table> </body> </html>