Sebastian: Browser-Identifikation an Fomularelement übergeben???

Hallo,

ich möchte die Browser-Identifikation (navigator.userAgent) an ein Feedbackformular übergeben, für den Besucher sichtbar, also etwa in einem Textfeld. Wie geht's?

Mit Dank & Gruß
Sebastian

  1. Hallo Sebastian,

    ein Skript sagt mehr als tausend Worte...

    <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <title>Testseite</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <script type="text/javascript">
    <!--
    function beispiel()
    {
    document.forms[0].ua.value=navigator.userAgent;
    }
    //-->
    </script>
    </head>

    <body onload="beispiel()">
    <h1>Test</h1>
    <form action="#">
    <input type="text" size="40" name="ua">
    </form>

    </body>
    </html>

    Viele Grüße

    Pidder Lüng