<script type="text/javascript">
function myFunction() {
var i = 1;
var text = ""
do{
text += "<font size =\""+ i + "\">" + "ข้อความที่ออก" + i + "</font>" + "<br>";
i++;
}while(i<8);
document.getElementsByClassName("demo").innerHTML = text;
}
</script>