how can you change button value(txt) onClick?

liunx

Guest
the ttitle explains it all<!--content--><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"<br />
"http://www.w3.org/TR/html4/strict.dtd"><br />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><br />
<meta name="Content-Script-Type" content="text/javascript"><br />
<title>Example</title><br />
<script type="text/javascript"><br />
<!--<br />
Array.prototype.next = function () {if (this.n == undefined || this.n >= this.length) this.n = 0; return this[this.n++]}<br />
<br />
button = ['Fee', 'Fie', 'Foe', 'Fum']<br />
// --><br />
</script><br />
<input type="button" value="Giant Says" onclick="this.value = button.next()"><!--content-->thank ya:D<!--content-->
 
Back
Top