PHP Code:
Just give it an ID and set its display to none...
Please excuse my ignorance..... I'm new to these things. What would that look like? Here's the code I now have (your script):
PHP Code:
<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;
}
window.onload = function () {
if(document.location.search == "?refresh=true") A_onclick('MyDiv');
}
</script>
</head>
<body>
<div>
<input type="button" class="button" value="Show Contact Details >>>" onclick="document.location=document.location.pathname+'?refresh=true'">
</div>
<div id="MyDiv" style="display:none">
Text Text Text
</div>
</body>
Bookmarks