Autofocus SQL textarea

This commit is contained in:
Jakub Vrana 2010-05-20 22:50:35 +02:00
parent 8f0c2608cc
commit bfff649905

View file

@ -137,6 +137,7 @@ if ($_POST) {
$q = $history[$_GET["history"]];
}
textarea("query", $q, 20);
echo ($_POST ? "" : "<script type='text/javascript'>document.getElementsByTagName('textarea')[0].focus();</script>\n");
?>
<p>
<input type="hidden" name="token" value="<?php echo $token; ?>">