HTML script help

Soldato
Joined
12 Dec 2003
Posts
2,588
This is the code I have so far:
Code:
<br>Search: </font>
<input type="text" id="number" name="number" size="25" /><font size="2">&nbsp;

    </font>

<input type="submit" 

onclick="top.window.location.href='http://www.site.com/listing/'+document.getElementById('number').value" value="Go" 

/>

This works fine, eg if I type 243 in the box it takes me to http://www.site.com/listing/243/

What I am trying to do it to get it to take me to .../listing/243.htm
I tried adding .htm after the .value but I have no clue what I'm doing with HTML so it didn't work!
 
Back
Top Bottom