www.webdeveloper.com
Results 1 to 2 of 2

Thread: How to make page title, auto refresh every x seconds (using javascript/jquery/others)

Hybrid View

  1. #1
    Join Date
    Apr 2007
    Posts
    26

    How to make page title, auto refresh every x seconds (using javascript/jquery/others)

    I have a php file lets say file1.php, that printing a variable, its dynamic numbers output that already always increasing, like private message numbers that coming or others :

    PHP Code:
    <?php
    echo $variable
    ?>


    i want to put that variable output, in another files page title, lets say file2.php or file3.html,
    in the front of the another files page titles, and auto refresh every x seconds, maybe like this :

    (1) - another text in the page title
    after x seconds, get a private message
    (2) - another text in the page title
    after another x seconds, get another private message
    (3) - another text in the page title




    or its ok if just like this, only the variable, without the another text in the page title
    (1)




    please share your knowledge to make it, maybe using javascript, jquery or others

  2. #2
    Join Date
    Mar 2012
    Posts
    63
    Hi

    you can use the variable in session to access or as cookie in javascript.

    so that you can access at all pages

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles