Author: Visual Web Developer | Posted on: 1/22/2009 2:47:15 PM | Views : 303


I wonder how it would be possible to identify with string that currently is written and by that make the change. For example if "Two" is written then the change will be to "Three" and next time the function calls "Three" will become "Four".

However my attempt does not seem to work. Wonder how the operators "or" and "and" is written in html also...

 

function ChangeText()

{ 

if (span.innerHTML == "One") span.innerHTML = "Two";

else

if (span.innerHTML == "Two") span.innerHTML = "Three";

else
Go to the complete details ...