OBRATENIE TEXTU

ID
Nazov / Name:
Popis / Description:
Dlzka / Length:
Testovane pod / Tested under:

 

049
p049.html / p049.zip
Obratenie vlozeneho textu
494b
NN 4.04, IE 4.0

UKAZKA / CLICK HERE

Zdrojovy tvar / Source code:

<html> <head> <title> JavaScript DESTINATION - P049 </title> </head> <body> <form name=reverse> <input type=text name=text> <br> <INPUT TYPE="button" VALUE="Obratenie vlozeneho textu" onClick="reverseText()"> </FORM> <script language="JavaScript"> <!-- function reverseText() { var msg = (document.reverse.text.value); var newmsg = ""; for(var i=msg.length; i >= 0; i--) { newmsg += msg.substring(i,i-1) } alert(newmsg) } // --> </script> </body> </html>
[ Navrat / BACK ]