dislocating a javascript function
This commit is contained in:
parent
c2d56bc429
commit
03d65369d3
1 changed files with 7 additions and 0 deletions
7
www/extras/addHTTP.js
Normal file
7
www/extras/addHTTP.js
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
function addHTTP(element) {
|
||||
if (!element.value.match(":") && !element.value.match("\^") && element.value.match(/\.\w+/)) {
|
||||
element.value = "http://"+element.value
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue