Monday, September 19, 2011

Whats the best way to change the link if no javascript?

I have a login button and when clicked it opens a menu where you can login. But if the clients computer has no javascript or disabled how to i send them to the login page instead the best(most efficient) way?Whats the best way to change the link if no javascript?Uh, do you have the ability to use PHP or any other server-side language?

PHP has a redirect you can use.



If you're trying to do a password protected page using only javascript, you are really out of luck. No way to do that in a successful manner. I would say to edit your .htaccess file to password protect the file then.