String searching in JavaScript

Given a string. Check if this string starts with 'http://'.

Given a string. Check if this string ends with '.html'.

enru