Category: Web Design, Graphic Design and Scripting Languages
Passing JS Variables From HTML to a .JS file: HTML, CSS, JavaScript, PHP
How does one do it???
I want the user to click on a link and, depending on the variable content, the image on the page will change. Basically, how do I pass the variable that I declare in my link to a JS file which then shows the appropriate image?
Umm... this is the code I have, maybe it'll show you what I'm trying to do: