Versuch's mal damit:
PHP-Code:
<html>
<head>
<script type="text/JavaScript">
function delout() {
alert(document.eingabe.input.value);
document.eingabe.input.value='';
document.eingabe.submit();
return false;
}
function WndClose() {
document.forms['eingabe'].input.value="/q";
//document.forms['eingabe'].submit();
delout();
return false;
}
</script>
</head>
<body text="#ffffff" LINK="#ffffff" ALINK="#ffffff" VLINK="#ffffff" onLoad="document.forms['eingabe'].input.focus()" onUnload="WndClose()">
<form action="input.php" target="inputframe" onSubmit="delout()" method="POST" name="eingabe">
<input type="hidden" name="cid" value="%cid%">
<input type="text" size="105" name="input" style="background-color: #CCCCCC; border-color: #ffffff; border-size: 1px; color: #000000" autocomplete="off"><br>
<font style="font-face:Verdana; font-size:10pt;">
<a href="input.php?cid=%cid%&input=/q" target="inputframe" onClick="document.eingabe.input.focus()">verlassen</a><br>
</font>
</form>
<iframe id="ILframe" name="inputframe" style="position:absolute; top:-10px; left:-10px; width:0px; height:0px; z-index:0;border:0px;"></ifarme>
</body>
</html>