<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="../../codebase/skins/dhtmlxpopup_dhx_skyblue.css"/>
<script src="../../codebase/dhtmlxcommon.js"></script>
<script src="../../codebase/dhtmlxpopup.js"></script>
<script>
var myPop;
var myForm;
function showPopup(inp) {
if (!myPop) {
myPop = new dhtmlXPopup();
myPop.attachHTML("You can enter some text into here");
}
if (myPop.isVisible()) {
myPop.hide();
} else {
var x = getAbsoluteLeft(inp);
var y = getAbsoluteTop(inp);
var w = inp.offsetWidth;
var h = inp.offsetHeight;
myPop.show(x, y, w, h);
}
}
function hidePopup() {
if (myPop)
myPop.hide();
}
</script>
<input type="text" onclick="showPopup(this);" onblur="hidePopup();" value="click">