Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Perl & JavaScript

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


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
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (8)
As of 2024-04-18 15:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found