Form Focus Addd

Added form.focus to the page to make it easier when pasting text into
the page.
This commit is contained in:
Manuel Kasper 2014-03-05 20:01:41 +11:00
parent 7293d4f4b5
commit c39d874b2a
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ if ( $action == "clearall" ) {
<link rel="stylesheet" type="text/css" href="style.css" /> <link rel="stylesheet" type="text/css" href="style.css" />
</head> </head>
<body> <body onload="document.forms[0].asset.focus(); document.forms[0].asset.select();">
<div id="nav"><a href="top.php">Top AS</a> | <a href="history.php">View an AS</a> | View an AS-SET | <a href="linkusage.php">Link usage</a></div> <div id="nav"><a href="top.php">Top AS</a> | <a href="history.php">View an AS</a> | View an AS-SET | <a href="linkusage.php">Link usage</a></div>
<?php if ($asset): ?> <?php if ($asset): ?>

View File

@ -26,7 +26,7 @@ $rrdfile = getRRDFileForAS($as);
<link rel="stylesheet" type="text/css" href="style.css" /> <link rel="stylesheet" type="text/css" href="style.css" />
</head> </head>
<body> <body onload="document.forms[0].as.focus(); document.forms[0].as.select();">
<div id="nav"><a href="top.php">Top AS</a> | View an AS | <a href="asset.php">View an AS-SET</a> | <a href="linkusage.php">Link usage</a></div> <div id="nav"><a href="top.php">Top AS</a> | View an AS | <a href="asset.php">View an AS-SET</a> | <a href="linkusage.php">Link usage</a></div>