<html>
<head>
<title>Test</title>
<link href="styles/xp/grid.css" rel="stylesheet" type="text/css" ></link>
<script src="lib/grid.js"></script>
</head>
<body>
<script>
var obj = new Active.HTML.INPUT();
obj.setAttribute("type","text");
obj.setAttribute("name","test");
obj.setAttribute("value","TEST 1");
document.write(obj);
function teste() {
obj.element().focus();
}
</script>
<br><br>
<input type="button" value="Update" onclick="test()">
</body>
</html>
<html>
<head>
<title>Test</title>
<link href="styles/xp/grid.css" rel="stylesheet" type="text/css" ></link>
<script src="lib/grid.js"></script>
</head>
<body>
<script>
var obj = new Active.HTML.INPUT();
obj.setAttribute("type","text");
obj.setAttribute("name","test");
obj.setAttribute("value","TEST 1");
document.write(obj);
function teste() {
obj.setAttribute("value","TEST 2");
obj.refresh();
obj.element().focus();
}
</script>
<br><br>
<input type="button" value="Update" onclick="test()">
</body>
</html>
This topic is archived.