Don gave me this code, thanks but.......

J

Johny

Hi

I was after some code to allow me to jump to any page on my web, Don replied
to my earlier post with the following that worked ok if I created pages
using notepad but when I use the code in FrontPage it won't work.

Help please

CODE:-

<form >
<input type="text" name="T1" size="20">
<input type="button" value="Button" name="B1"
onclick="document.location.href = T1.value + '.htm'">
</form>

Thanks
John
 
K

Kevin Spencer

Try the following change:

onclick="document.location.href = document.forms[0].T1.value"

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living
 
J

Johny

Sorry.
WHAT???????????

do me a favour and show me what you mean please, new to this.
Thanks again
 
M

Murray

Instead of this -

<input type="text" name="T1" size="20">
<input type="button" value="Button" name="B1"
onclick="document.location.href = T1.value + '.htm'">
</form>

Make sure you have this -

<input type="text" name="T1" size="20">
<input type="button" value="Button" name="B1" onclick="document.location.href = T1.value + '.htm'">
<!-- The red line above this is all on one line of code, i.e., no line breaks within -->
</form>
 
M

Murray

Try this -

<form action="">
<select name="M1">
<option value="4"
onclick="window.location='April.asp'">April</option>
<option value="5">May</option>
</select>
</form>
 
Top