how to enable browser javascript using php ?

Discussion in 'PHP' started by tomsign, Jul 16, 2010.

  1. #1
    Hi,



    how to enable browser javascript using php ?



    waiting response
     
    tomsign, Jul 16, 2010 IP
  2. Deacalion

    Deacalion Peon

    Messages:
    438
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Your question isn't clear. You want to enable javascript on a users browser after they have disabled it? it's not possible.
    Or you want to output javascript from a PHP script?

    
    <?php
        header("content-type: application/x-javascript");
    
        // output javascript code here
    ?>
    
    PHP:
     
    Deacalion, Jul 16, 2010 IP
  3. Johnta

    Johnta Peon

    Messages:
    101
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You can only check if javascript is enabled or not bu you cannot do anything on client side unless he gave the permission to do so
     
    Johnta, Jul 16, 2010 IP