Here is my function:
<script type=“text/javascript”>
<!–
var unlockproperty = 1
function addigit() { unlockproperty=unlockproperty+1; }
if (unlockproperty > 1) {window.open
(“http://www.yahoo.com”)}
//–></script>
and here is my input button that calls the function:
<input type=“button”
value =“add digit”
onclick=“addigit()”></button>
Here is the problem. When I click my “add digit” button, the function adds the digit to my “unlockproperty()” variable, however when “unlockproperty()” becomes greater than 1, nothing happens, even though it is supposed to open up to yahoo.com.