javascript How to link image to link in JavaScript
Go to solution
Solved by Mattattack94,
I figured it out, here is the answer incase someone else has the problem:
var img = new Image(); img.src = 'logo.png'; img.id = "logo" img.height = "56" img.onclick = function() { window.location.href = 'Html.html'; }; document.body.appendChild(img);
-
Topics
-
1
-
2
-
0
-
Tydn12 ·
Posted in New Builds and Planning2 -
2
-
ID0 ·
Posted in Networking2 -
eviohh ·
Posted in Troubleshooting3 -
5
-
IhateAMDDRIVERS ·
Posted in Troubleshooting7 -
SashaSanguine ·
Posted in General Discussion6
-
-
play_circle_filled
Latest From ShortCircuit:
The World's Fastest CPU (Technically...) - Intel i9-14900KS
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now