Hi Guys
I have the following code on my site, which hides text, and then displays the text when a button is clicked:
What I'm looking for, is for the page to reload when the button is clicked, and the text to show when the page reloads.PHP Code:<html>
<head>
<script type="text/javascript">
function A_onclick(div) {
var d = document.getElementById(div);
d.style.display = (d.style.display =="none")?'block':'none';
return false;
}
</script>
</head>
<body>
<a href="#" onclick="return A_onclick('MyDiv');">
<form><input type="button" class="button" value="Show Contact Details >>>"></form></a>
<div id="MyDiv" style="display:none">
Hidden text to be displayed when button is clicked
</div>
</body>
</html>
Any help would be appreciated.


Reply With Quote

Bookmarks