I have a variable that holds the value 'website.html'.
How can I split that variable so it only gives me the 'website'?
Thanks
Another way of doing things using some String manipulation.
var myString = "website.html"; var dotPosition = myString.indexOf("."); var theBitBeforeTheDot = myString.substring(0, dotPosition);