Dynamic Document creation using Java Script
var html =
;
html.head.title = "My Page Title";
html.body.@bgcolor = "#e4e4e4";
html.body.form.@name = "myform";
html.body.form.@action = "someurl.jss";
html.body.form.@method = "post";
html.body.form.@onclick = "return somejs();";
html.body.form.input[0] = "";
html.body.form.input[0].@name = "test";
Print(html.toXMLString());
it will prints like this:
<html>
<head>
<title>My Page Title</title>
</head>
<body
bgcolor="#e4e4e4">
<form
name="myform"
action="someurl.jss"
method="post"
onclick="return
somejs();">
<input
name="test"></input>
</form>
</body>
</html>
No comments:
Post a Comment