I want to know how to update a href link with javascript using an image. I have a image which has to update a href which displays a lightbox. Could someone please tell me know to do this.
scarcella
11
Senior Software Architect
Recommended Answers
Jump to PostI am still not sure what you are ultimately wanting. Does the clicked image get an href applied to it after it is clicked and the image itself changes?...or does clicking the image change an existing href and image?...or???
You can change attributes:
function update_link() { …
All 4 Replies
SolidSolutions
13
Junior Poster
scarcella
11
Senior Software Architect
SolidSolutions
13
Junior Poster
scarcella
11
Senior Software Architect
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.