I have a simple website (pure HTML, CSS and JS), but want to use variables in this site.
Like: onclick="myFunction()" class="dropbtn">**$VARIABLE**
I want the text be variable. So VARIABLE=ABC
or VARIABLE=123
. This has to be shown in the dropdownbutton.
The same for:
href="index.html">$VARIABLE
. Which shows the variable in the reference link.
or
input type="text" placeholder=**$VARIABLE** id="myInput" onkeyup="filterFunction()"
. Which shows the variable in the button.
or
href="" title=**$VARIABLE** ><img src="image/WhatsApp.jpg" alt=""
. Which shows the variable in the picture.
And more of this things.
Can not use JSP, because I use a IIS webserver (no servlets).
So, can it be done, can I use variable (like the examples) in my HTML with JavaScript (JS).