SHARE
TWEET

Untitled

a guest Sep 30th, 2013 32 Never
  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;
RAW Paste Data
Top