Ahh, hadn't thought of that. Makes total sense. Thanks for that!
Alright, one more problem...
Here is the code:
Code:
<html>
<head>
<script type="text/javascript">
function condense() {
var str=document.input.inputfield.value;
str = str.replace(/at/i,"@")
str = str.replace(/to/i,"2")
str = str.replace(/too/i,"2")
str = str.replace(/tommorow/i,"2morrow")
str = str.replace(/you/i,"u")
str = str.replace(/ok/i,"k")
document.output.outputfield.value=(str);
}
</script>
</head>
<body>
<form name="input">
<label>Input:</label>
<br />
<textarea rows="10" cols="30" name="inputfield"></textarea>
<br />
<button onClick=condense();>Condense!</button>
</form>
<form name="output">
<label>Output:</label>
<br />
<textarea rows="10" cols="30" name="outputfield"></textarea>
</form>
</body>
</html>
It quickly dispays what I want in the output field, and then refreshes and disappears... Any ideas?
Thanks,
deadImpulse