I was going through my book and found a piece of code which does not uses the traditional getElement
method for selection but there is some shorthand used. Can some tell me more about this thing I know nothing of it frm.txt.value
.
function show_temp(){
var Tval=frm.txt.value;
alert("The temp in far. is " + Tval + " degree");
}
<form name="frm">
Enter the temp in Fahrenheit:
<input type="text" name="txt">
<input type="button" value="temperature" onclick="show_temp()">
</form>