mirror of
https://github.com/rn10950/RetroZilla.git
synced 2024-11-14 11:40:13 +01:00
37 lines
841 B
HTML
37 lines
841 B
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
|
|
<html>
|
|
<head>
|
|
<title>This is a title</title>
|
|
<script type="text/javascript">
|
|
|
|
function test1() {
|
|
var e1 = document.getElementById("myTd");
|
|
e1.style.width = 300;
|
|
var e2 = document.getElementById("table");
|
|
}
|
|
function test2() {
|
|
var e1 = document.getElementById("myTd");
|
|
e1.style.width = 300;
|
|
var e2 = document.getElementById("table");
|
|
e2.style.display = 'none';
|
|
e2.style.display = '';
|
|
}
|
|
|
|
</script>
|
|
</head>
|
|
<body onload=test1()>
|
|
<table id="table" cellspacing=0 border=3>
|
|
<tr>
|
|
<td>fieldLabel</td>
|
|
<td id="myTd"> InspectionText</td>
|
|
</tr>
|
|
</table>
|
|
<form action="">
|
|
<input type="button" value="change width" onclick="test1()">
|
|
<input type="button" value="change width with table reflow"
|
|
onclick="test2()">
|
|
</form>
|
|
</body>
|
|
</html>
|