Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Javascript
javascript set attribute href
Abdullah
Programming language:
Javascript
2021-08-13 05:42:36
0
Q:
javascript set attribute href
divibisan
Code:
Javascript
2021-06-11 04:13:20
var a = document.getElementById('myElementID'); a.href = "http://www.mywebsite.com";
6
Tags
javascript
set
script
attribute
Related
get href attribute javascript
put new attribute on html tag using javascript
javascript a href attribute
set attribute javascript
href back page javascript
add "hr" from javascript
javascript get attribute
window.href
javascript change attribute
New to Communities?
Join the community