is there a simple way to reveal text within a webpage using a link without altering the web address or using an iframe? maybe with an ‘onclick’ function? im pretty new to new code so not sure where to start.. ive attached a picture of what exaclty im after, fairly simple. im already using an iframe as the main interface so another one would get messy in terms of a default menu. there must be a simple fix.. any help would be really appreciated.
thanks, Aaron

Put the text you want to hide until click inside hidden container, like this:
Next step is add that JavaScript code to the page, for example inside the
<head>section:And finally have such code:
Live test case.
Edit: in case you got more than one element to show, you can use the
relattribute:Then with pure JavaScript iterate over all elements with that attribute and assign their
onclickprogrammatically:When clicked, element with ID the same as the
relvalue will be displayed.Updated fiddle.
Edit: to show it in one single container, first have such container:
No need to have it hidden since it’s initially empty, then change the code to:
Instead of showing the related container, you copy its contents to the “main” container.
Updated jsFiddle.