PDA

View Full Version : actionSCRIPT problemo



Nial
April 24th, 2003, 07:42 PM
I have an action script that goes like this

on (release) {
if (answer == "clock") {
getURL ("index2.htm", "_self");
}
}

I want to know if theres a way to make the answer variable be forced into becoming lowercase?

Ensuring that even if answer = "ClOcK" the user is still passed to the next URL

kode
April 24th, 2003, 07:57 PM
on (release) {
if (answer.toLowerCase() == "clock") {
getURL("index2.htm", "_self");
}
}
=)