mirroring text

wxdqz

New Member
First, I want to apologize for asking rather much questions in a rather short period of time. It's just that I'm a real n00b when it comes to JS, and my teacher hasn't been much of a help either. I really appreciate all the help I've already received from you guys, and I think I couldn't have done all the work I have done without your help. Thank you.

Ok, here goes; I need to mirror a text string that was entered by a user in a box in a HTM form. Any suggestions? The part I have this far is:

<html>
<head>
<head>
<body>
<form name="input">
<input type="text" name="testString"> This is just a test string.<br>
<input type="submit" value=http://www.webdeveloper.com/forum/archive/index.php/"Reverse string" name="startReverse" onClick="reverse()">
</form>
<script language="javascript">
<!--
-->
</script>
</body>
</html>

Now, obviously the "reverse()" part is the name of my function (wich I took out, because it doesn't work). I need to show the text entered in the box in the same screen, but reversed. So, "Hello" becomes "olleH". I found a script to do this, but that was a couple of days ago and I can't seem to find it again. :( Stupid me
 
Back
Top