View Full Version : Setting max length to things

06-11-2007, 10:14 AM
Alright.. say if excape(name) is longer than 15 charicters , shorten it up into 8 charicters. .. how would I go about doing that.

As well as if excape(this) is blah change to meep

Philip M
06-11-2007, 11:17 AM
Is this what you mean?

<SCRIPT type="text/javascript">
function shorten() {
name = "abcabcabxyzxyzxyzxyz"
if (name.length>15) {
name = name.substr(0,8);
alert (name);

excape?? charicters??