[Webinar] Streamline your web hosting managementRegister Today

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 185
  • Last Modified:

FP98...Need HTML/Script for the following...

I need HTML/Script, which may be pretty simple, that requires the user to type in an item into a block, then press a "go" button, and open an HTM file after that name:


File to go to? ____________ (Type in 456-435-2)


press the "go" button...

and finally a file in that directory named 456-435-2.htm is opened in the browser..It's something that basically adds the ".htm" extension to whatever the user types, then opens the page that match the entry..
1 Solution
What you need is probably simple JavaScript, but you will need to be careful in putting it in Front Page 98.
<form name=frm>
<input type=text name=filename>
<input type=button name=btnGo value="Go" onclick="GetFile()">
<script language=JavaScript>
function GetFile() {
   var str
   str = document.frm.filename.value + ".htm"
   window.location = str

Should do it.


Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now