You can't really do it on the client side using Javascript unless you have
a complete list of all acceptable pages or a way to determine them - for
example if you have 50 pages then the pageref.value should be equal to or
less than 50.
At 05:21 30/09/01 +0000, you wrote:
>I have a page and the script on the site reads like this
> <script language="javascript">
> > function ButtonLink()
> > {
> > document.location="page" + document.myForm.pageref.value
>+ ".html";
> > }
> > </script>
>It works great when i have a page allready created, however if i dont have
>a page created it creates a error page, How can i edit the code to goto to
>a defualt page if i didnt create a page that fits the code?
>Thank you
>