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 :: javascript get date midnight today 
Javascript :: button group get value 
Javascript :: react count up every second 
Javascript :: eslint linebreak style 
Javascript :: laravel javascript array from blade 
Javascript :: how to get file extension in javascript last index 
Javascript :: javascript has string 
Javascript :: jquery loop through class inside the div 
Javascript :: how to reset form values in jquery 
Javascript :: ubuntu nodejs update 
Javascript :: update the whole target of a proxy javascript 
Javascript :: state wheteher true or false The charioteer sprinkled sacred water on the king. 
Javascript :: moment between exclusivity 
Javascript :: react execute code after set 
Javascript :: js switch case 
Javascript :: javascript get n random elements from array 
Javascript :: get specific item from local storage 
Javascript :: javascript calculate days between dates 
Javascript :: regular expression should not contain special character 
Javascript :: iscolor 
Javascript :: js nullish 
Javascript :: jquery give control focus 
Javascript :: js wait 5 second 
Javascript :: handle esc press js 
Javascript :: add download buttons in datatable 
Javascript :: check balance of a wallet in js 
Javascript :: build ionic app for android livereload 
Javascript :: javascript split array into chuncks of 
Javascript :: javascript change table row color based on value 
Javascript :: jetbrains mono 
ADD CONTENT
Topic
Content
Source link
Name
3+8 =