diff options
| -rw-r--r-- | htroot/WatchWebStructure_p.html | 2 | ||||
| -rw-r--r-- | htroot/js/WatchWebStructure.js | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/htroot/WatchWebStructure_p.html b/htroot/WatchWebStructure_p.html index 1eb5708c1..684f43aaa 100644 --- a/htroot/WatchWebStructure_p.html +++ b/htroot/WatchWebStructure_p.html @@ -14,7 +14,7 @@ <tr> <td valign="top"> <dl> -<dt>host</dt><dd><input type="text" value="#[host]#" id="host" onblur="changeHost()" /></dd> +<dt>host</dt><dd><input type="text" value="#[host]#" id="host" onblur="changeHost()" onkeydown="keydown(event)"/></dd> <dt>depth</dt><dd>#[depth]#<br/> <a href="WatchWebStructure_p.html?host=#[host]#&depth=#[depthd]#&width=#[width]#&height=#[height]#"><img src="env/grafics/minus.gif" /></a> <a href="WatchWebStructure_p.html?host=#[host]#&depth=#[depthi]#&width=#[width]#&height=#[height]#"><img src="env/grafics/plus.gif" /></a> diff --git a/htroot/js/WatchWebStructure.js b/htroot/js/WatchWebStructure.js index 5b5f754ba..9c9cb6d1a 100644 --- a/htroot/js/WatchWebStructure.js +++ b/htroot/js/WatchWebStructure.js @@ -1,3 +1,8 @@ function changeHost(){ window.location.replace("http://"+window.location.host+":"+window.location.port+"/WatchWebStructure_p.html?host="+document.getElementById("host").value); +} +function keydown(ev){ + if(ev.which==13){ + changeHost(); + } }
\ No newline at end of file |
