Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
P is for Practical
 
PerlMonks  

Re: Perl & JavaScript

by Adam (Vicar)
on Mar 08, 2001 at 21:43 UTC ( [id://63119]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Perl & JavaScript

Not without getting the user to submit a cgi-form. Then you can put something like:
<script language="javascript"> // <!-- document.write("<input type='hidden' name='js' value='1'>"); // --> </script>
Then look for that hidden field in your code. If it is there then they have javascript enabled.
use strict; use CGI; my $q = CGI->new(); if( $q->param('js') ) { # They have javascript! } else { # they don't. }

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://63119]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.