Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Sep 30th, 2013  |  syntax: None  |  size: 0.58 KB  |  views: 28  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. var link = " http://www.google.com";
  2.  
  3. <a href='link' />
  4.        
  5. var link = "http://www.google.com/";
  6. var linktext = "Google";
  7.  
  8. document.write("<a href="" + link + "">" + linktext + "</a>";
  9.        
  10. var link = "http://www.google.com/";
  11. var linktext = "Google";
  12.  
  13. document.write("<a href="" + link + "">" + linktext + "</a>";
  14.        
  15. var link = "http://www.google.com/";
  16. var linktext = "Google";
  17.  
  18. document.write("<a href="" + link + "">" + linktext + "</a>";
  19.        
  20. var link = "http://www.google.com";
  21. $("a[href='link']").attr("href", link);
  22.        
  23. var anchor = document.createElement("a");
  24. anchor.href = link;
clone this paste RAW Paste Data