Hi

I want the alert box bewlow to pop up when the "badlogin" variable is set to 1, in a URL. For example http://www.domain.com?badlogin=1 .

<script>
if (document.location.search) alert("\nIncorrect password.\n\nPlease try again.");
</script>


Any ideas ?
Marcel