i want the div to be displayed where the mouse was clicked... whats wrong?
<head>
<style type="text/css">
#layer1 {
position:fixed;
display: none;
width:600px;
height:auto;
}
</style>
</head>
<body>
<input type="button" value="Button 3"
onclick="setVisible();">
<textarea id="reply" name="reply">testing12345678910ffafaf</textarea>
<div id="layer1"></div>
<script type='text/javascript'>
function setVisible() {
var div = document.getElementById('layer1');
// put the correct content in the div here
div.innerHTML = document.getElementById('reply').value;
div.style.left = window.event.clientX + 'px';
div.style.top = window.event.clientY + 'px';
div.style.display = 'visible';}
</script>
</body>