Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

how to change attribute link in javascript

function changeLink(){
    document.getElementById("mylink").href = "http://facebook.com";
    document.getElementById("mylink").innerHTML = "facebook";
    }
Comment

PREVIOUS NEXT
Code Example
Javascript :: golang parse jason 
Javascript :: link button material ui 
Javascript :: js input type range get value on select 
Javascript :: iframe innerthtml 
Javascript :: remove duplicates from array 
Javascript :: javascript minimum number in array 
Javascript :: javascript split multiple delimiters 
Javascript :: How to remove title in material-table 
Javascript :: reload page angular one time 
Javascript :: reactjs make main div scrollable 
Javascript :: palindrome rearranging javascript 
Javascript :: node read file sync 
Javascript :: jquery get data attribute 
Javascript :: how to get id of current element clicked 
Javascript :: clear file upload jquery 
Javascript :: Use the parseInt Function with a Radix 
Javascript :: express redirect 
Javascript :: how to use typeof in javascript 
Javascript :: getting state in react-router-dom v6 
Javascript :: js document.addEventListner 
Javascript :: javascript check if string contains substring 
Javascript :: mongodb add new field 
Javascript :: number of repetition in an array javascript 
Javascript :: convert string to number javascript 
Javascript :: react conditional styling 
Javascript :: vscode css lint 
Javascript :: referenceerror window is not defined ckeditor 
Javascript :: javascript element distance from top 
Javascript :: Nullish Coalescing Vs Logical OR opreators 
Javascript :: addeventlistener js select item 
ADD CONTENT
Topic
Content
Source link
Name
8+9 =