Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

create a link javascript

<html>
  <head></head>
  <body>
    <script>
      var a = document.createElement('a');
      var linkText = document.createTextNode("my title text");
      a.appendChild(linkText);
      a.title = "my title text";
      a.href = "http://example.com";
      document.body.appendChild(a);
    </script>
  </body>
</html>
Comment

PREVIOUS NEXT
Code Example
Javascript :: lodash sum array of objects 
Javascript :: events js 
Javascript :: upload image with react 
Javascript :: custom hook react 
Javascript :: ajax post request 
Javascript :: noise expression after effects 
Javascript :: adonisjs char 
Javascript :: client position js 
Javascript :: insertmany 
Javascript :: get latest input by .each jquery 
Javascript :: findPotentialLikes javascript 
Javascript :: Convert to String Explicitly 
Javascript :: javascript Adding Properties And Methods in an Object 
Javascript :: javascript Inside a regular function 
Javascript :: javascript get() handler 
Javascript :: random number 1-3 
Javascript :: actionscript random randomfunction 
Javascript :: what is hmr in console 
Javascript :: test driven development javascript 
Javascript :: how to get html element coords in js 
Javascript :: phaser grid align 
Javascript :: phaser multi atlas animation 
Javascript :: apply multiple style objects in react js 
Javascript :: js undici 
Javascript :: javascript to jquery code converter online 
Javascript :: Adding A Function To All Node Example With Javascript 
Javascript :: ... in javascript 
Javascript :: javascript case insensitive regex 
Javascript :: change value in array react 
Javascript :: javascript keyboard shortcuts 
ADD CONTENT
Topic
Content
Source link
Name
5+2 =