Hi,
Does anyone have an example of this html.
I want to display 2 buttons in html. If I click button 'a' I want to set a variable to a value (eg name = "john smith" ) and then display a block of text with the variable 'name' somewhere in it. If I click button 'b', I set the variable to another name and display the same block showing this different variable within it. However, the text displayed is within a <pre> </pre> tag.
eg:-
<pre>
Does anyone have an example of this html.
I want to display 2 buttons in html. If I click button 'a' I want to set a variable to a value (eg name = "john smith" ) and then display a block of text with the variable 'name' somewhere in it. If I click button 'b', I set the variable to another name and display the same block showing this different variable within it. However, the text displayed is within a <pre> </pre> tag.
eg:-
<pre>
hello, my name is <name> and I live in a tent.</pre>
I have changed my <name> from a to b,thankyou




































Linear Mode

