Source

PunkyBrowster / examples / form_manipulation_2.html

Full commit
<html>

<head>

    <script>
    window.onload = function() {
        var href = document.location.href;

        var params = href.substr(href.indexOf('?') + 1);
        params = params.split('&');

        var results = document.getElementById('results');
        for (var i=0; i < params.length; i++) {
            var parts = params[i].split('=');
            var name = parts[0];
            var value = unescape(parts[1]);

            var el = document.createElement('p');
            el.innerHTML = name + ' = ' + value;
            results.appendChild(el);
        }
    }
    </script>

</head>

<body>
    <h1>Form Manipulation Results</h1>

    <div id="results"></div>

</body>
</html>