Is it possible to include two onclick arguments in a button tag like this:
<div id="Spacer" align="center">
<button id="button" onclick="document.getElementById('pop').style.display='block';$('#grayout').toggle(900); return false;">
<a id="Text">Click to go to Google</a>
</button>
</div>
This is the CSS for the onclick argument:
#grayout {
position: fixed;
left: 0px;
top: 0px;
height: 100%;
width: 100%;
background-color: black;
opacity: 0.5;
}
Unfortunately, this setup does not work as expected. Is there a way to open the 'pop' popup box and gray out the background without using external JavaScript?