<html>
<script language="JavaScript">
var counter1 = 0;
function displayText()
{
var counter2 = 3;
counter1++;
counter2++;
//alert(counter1+'\n'+counter2);
document.getElementById('targetDiv').innerHTML ="First counter equals"+ counter1 +"<br>"+"But the second counter is still stuck at "+counter2;