Hey guys,
I got this simple password script for a page.
I want this code to create a session cookie until user leaves page or exits his browser, I want to eliminate the need to enter the password every time he goes to that page. Can you help?Code:<script language="JavaScript"> <!-- var password = prompt("What's the password","Type password"); if (password == "yes") { alert("Welcome"); } else { alert("Sorry wrong password"); javascript:history.back() } --> </script>
viktor



Reply With Quote


Bookmarks