dislocating a javascript function

This commit is contained in:
JT Smith 2003-05-03 16:48:26 +00:00
parent c2d56bc429
commit 03d65369d3

7
www/extras/addHTTP.js Normal file
View file

@ -0,0 +1,7 @@
function addHTTP(element) {
if (!element.value.match(":") && !element.value.match("\^") && element.value.match(/\.\w+/)) {
element.value = "http://"+element.value
}
}