Hi!
I have this code below that let's me type in a number that goes to the requested anchor tag. All my anchor tags in my html file are numbers.
<input type="text" onchange="window.location ='#' + this.value;" />
I would like to make this a function. I tried the following but it doesn't work:
<script>
function go() {
window.location ='#' + this.value;
}
</script>
<body style="font-size: 14px;">
<input type="text" onchange="go();" />
Can anyone help me?
--Philip
I have this code below that let's me type in a number that goes to the requested anchor tag. All my anchor tags in my html file are numbers.
<input type="text" onchange="window.location ='#' + this.value;" />
I would like to make this a function. I tried the following but it doesn't work:
<script>
function go() {
window.location ='#' + this.value;
}
</script>
<body style="font-size: 14px;">
<input type="text" onchange="go();" />
Can anyone help me?
--Philip