| <HTML> |
| <HEAD> |
| <TITLE>mozilla.org: Bug 46368</TITLE> |
| <STYLE>#myWord { color: blue; }</STYLE> |
| </HEAD> |
| <BODY onLoad="doClick()"> |
| <TABLE border="1" width="100%" bgcolor="Aqua"> |
| <TR> |
| <TD width=300><FONT id="myWord">Mozilla</FONT> code available under a |
| dual MPL/GPL license. See the for more info.<BR> |
| </TD> |
| <TD> foo bar foo bar foo bar foo bar foo bar </td> |
| </TR> |
| </TABLE> |
| |
| <SCRIPT language="JavaScript1.2"> |
| |
| function doClick() { |
| var myFont=document.getElementById("myWord"); |
| var myText=document.getElementById("txtFontSize"); |
| myFont.size=myText.value; |
| } |
| |
| </SCRIPT><BR> |
| <INPUT onClick="javascript:document.location.reload()" type="submit" name="btnReload" value="Reload"> |
| <INPUT onClick="javascript:doClick()" type="submit" name="btnChange" value="Change Font"> |
| <INPUT name="txtFontSize" id="txtFontSize" value="6"> |
| </BODY> |
| </HTML> |