html.openTagLn("form", HTML.attr("id","theform2"),HTML.attr("name","theform2"), HTML.attr("method","get"), HTML.attr("action", "/test/ntm.jsp"));
html.openTagLn("select", HTML.attr("name","views"));
html.openTagLn("option",HTML.attr("value","front"), HTML.attr("selected","selected")).text("FRONT view").closeTagLn("option");
html.openTagLn("option",HTML.attr("value","back")).text("BACK view").closeTagLn("option");
html.openTagLn("option",HTML.attr("value","left")).text("LEFT view").closeTagLn("option");
html.openTagLn("option",HTML.attr("value","right")).text("RIGHT view").closeTagLn("option");
html.openTagLn("option",HTML.attr("value","top")).text("TOP view").closeTagLn("option");
html.openTagLn("option",HTML.attr("value","bottom")).text("BOTTOM view").closeTagLn("option");
html.closeTagLn("select");
html.append("");
html.openTag("div");
html.openTag("script", HTML.attr("type","text/javascript"));
html.append("var select=document.getElementById(\"views\");select.onchange = function(){var x=this.options[this.selectedIndex].innerHTML; document.write(x)}");
html.closeTagLn("script");
html.closeTagLn("div");
html.closeTagLn("form"); |