Guest User

Untitled

a guest
Sep 23rd, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. anchor.innerText = text;
  2. if(text.indexOf('http://')!=0 || text.indexOf('https://')!=0){
  3. text = "http://"+prefix; //default http(or) https
  4. }
  5. anchor.href = text;
Add Comment
Please, Sign In to add comment