Clickjacking example

An example of how you can overlay two elements, and have the click register on the obscured one. (I haven't used an iframe for this demo, so it's not a full clickjacking example).

by mbread

HTML

<p>
  Click on the link:</p>
<button onclick="alert('No, I am a button!')">
  I am a button
</button>
<span class="fake-link">Link</span>

CSS

.fake-link {
  color: blue;
  text-decoration: underline;
  position: relative;
  left: -55px;
  background-color: white;
  padding: 0.5em;
  pointer-events: none;
}