HTML only: Change text by clicking

95 views Asked by At

I would like to have different versions of a HTML text displayed by clicking on a button (without using javascript).

The idea is to select different languages with a button/hyperlink etc. that controls what HTML text to display. I know this works with javascript, but unfortunately the webpage I want to post my multilanguage texts on does not support javascript. The webpage I am talking about is geocaching.com, so maybe anyone has seen or done such a multilanguage listing or knows how to do this under the restrictions posed there.

Any idea how to select/display distinct texts in plain HTML? Thanks for any solution, pointers or references.

Best M.

2

There are 2 answers

0
George On

Without using Javascript or Jquery I think your only option left would be to make the buttons act like links and push forward a variable and to use server side scripting like php or asp to write a specific style inside the page for the elements in question...

0
Sney19 On

If you are using .net, you can have multiple 'href' calls in your html to your controllers actions that would give you your desired output. Hope its something that your looking for.