Wahyu Kurniawan Blog


Some of your need maybe at here





See also: Other Geeks@INDC

March 2008 - Posts

Query String Validation

<html>
<head>
    <script>
        function urlvalidation()
        {
            var querystring = document.location.search.length;
            if (querystring>256) //256 is configurable
            {
                window.location = 'redirect.htm';
            }
        }
    </script>
</head>
<body onload = urlvalidation()>

       Test

</body>
</html>


 
It will validate length of query string, and will be redirected to specific page. All process is client side.

Share this post: | | | |