1. Welcome to PHCorner Forums. Take a moment to Sign up and gain unlimited access and extra privileges that guests are not entitled to, such as:

    All that and more! Registration is quick, simple and absolutely free. Join our community today!

HTML, CSS & Javascript Help:script that reloads tab when div changes

Discussion in 'Coding, Programming' started by chrischan1, Jul 24, 2016.

  1. Patulong po.

    <span class="user--point">
    <div class="points">756 pts</div>
    </span>

    ano po kaya script para dito. Dapat po kasi kapag nagbago value ng "points" magrereload ang chrome tab, kapag hindi naman nagbago babalik sya simula ng script.

    ito po script ko. hindi gumagana. newbie sa javascript.

    function checkForChanges()
    {
    if ($('user--point').contentchanged())
    location.reload(true);
    else
    return;
    }
     
  2. Use AJAX :) .. Instant Refresh .. without Reloading your Browser ..
    Good luck :)
     
    Last edited: Jul 24, 2016
Tags / Keywords: