<a href="javascript:alert('Merhaba, Ben Murat Öner')">Javascript Kodu</a> 
<br /> 
Ya da bunu kullanabilirsiniz
<br />
<a href="javascript:;" onclick="alert('Merhaba, Ben Murat Öner')">Javascript Kodu</a>

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.