Karl Jansen: Formular Problem

Tag

Also habe folgendes Problem habe  Script zum Passwortschutz von folgender Seite geholt
http://www.webaid.de/js/index.shtml
unter Javascript 5 -> Passwort

und habe das folgerndermaßen eingebunden (is nur ne Test Seite)

<html>
<head>
<title>Formular-Seite</title>

function go() {
                   location.href = 'http://www.xxx.yyy/' + document.passwordForm.userid.value + '/' + document.passwordForm.password.value + '.shtml';
                   return false;
               }
</head>

<body>

<FORM action='onClick="go()"' NAME="passwordForm" onSubmit="return go()">
               <P>User-ID: <INPUT NAME="userid" TYPE="TEXT">
               <P>Passwort: <INPUT NAME="password" TYPE="PASSWORD">
               <INPUT TYPE="BUTTON" VALUE="Enter" onClick="go()">
</FORM>

<b>Hier dein Passwort und deinen Login namen eingeben</b>

</body>
</html>
-----------------------------------------------------------------------------------------------------------------------------------------
Mein Problem ist nun:

Wieso stellt der aber bei mir das Formular gar net dar?

Danke schonmal imvoraus

Karl

  1. Hallo Karl

    Versuche eimal den Script-Tag um die Funktion zu geben!

    Roman

    function go() {
                       location.href = 'http://www.xxx.yyy/' + document.passwordForm.userid.value + '/' + document.passwordForm.password.value + '.shtml';
                       return false;
                   }
    </head>

    Danke schonmal imvoraus

    Karl

    1. Hallo Karl

      Versuche eimal den Script-Tag um die Funktion zu geben!

      Versteh ich net ganz, könnteste das bitte nen bißchen näher erklären?

      thx
      Karl

      1. Hallo Karl

        Versuche eimal den Script-Tag um die Funktion zu geben!

        Versteh ich net ganz, könnteste das bitte nen bißchen näher erklären?

        Deine JavaScript schaut so aus

        function go() {
                           location.href = 'http://www.xxx.yyy/' + document.passwordForm.userid.value + '/' + document.passwordForm.password.value + '.shtml';
                           return false;
                       }

        Man muss ihn aber in einem Script-Tag einschliessen.

        <script language="JavaScript">
        function go() {
                           location.href = 'http://www.xxx.yyy/' + document.passwordForm.userid.value + '/' + document.passwordForm.password.value + '.shtml';
                           return false;
                       }
        </script>

        Naeheres entnimme bitte aus Selfhtml.

        Cu Roman