DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
javascript set attribute href
var a = document.getElementById('myElementID'); a.href = "http://www.mywebsite.com";
PREVIOUS
NEXT
Tagged:
#javascript
#set
#attribute
#href
ADD COMMENT
Topic
COMMENT
Name
5+3 =
Submit