Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3

Thread: setup cookie

  1. #1
    New Coder
    Join Date
    Jan 2010
    Posts
    34
    Thanks
    2
    Thanked 0 Times in 0 Posts

    setup cookie

    Hello
    I have below script

    i need add cookie to it . disable script untill cookie is not expired

    can you please help me



    <script language=javascript type="text/javascript">
    <!-- Hide script from old browsers

    //new window script
    function jshow()
    {window.open("http://www.google.com","blank")}

    // End hiding script from old browsers -->
    </script>

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,928
    Thanks
    203
    Thanked 2,531 Times in 2,509 Posts
    Cookies have been covered very many times in this forum, and elsewhere. Use the "Search" facility or try Google.

    <script language=javascript> is long deprecated and obsolete. Use <script type = "text/javascript"> instead. The <!-- and //--> comment (hiding) tags have not been necessary since IE3 (i.e. since September 1997). If you see these in some published script it is a warning that you are looking at ancient and perhaps unreliable code.

  • #3
    New Coder
    Join Date
    Jan 2010
    Posts
    34
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Philip M View Post
    Cookies have been covered very many times in this forum, and elsewhere. Use the "Search" facility or try Google.

    <script language=javascript> is long deprecated and obsolete. Use <script type = "text/javascript"> instead. The <!-- and //--> comment (hiding) tags have not been necessary since IE3 (i.e. since September 1997). If you see these in some published script it is a warning that you are looking at ancient and perhaps unreliable code.
    I did try google but it doesnt help
    Anyway , Yet i need to add cookie to above script instead of not useful texts !

    i appreciate someone can help me


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •