Load a specific div from a webpage inside website

2019-08-30 00:15发布

问题:

I am seeking help in displaying a specific id div tag through iFrame & jQuery and reloading the page every 30 seconds. This is what I have so far.

<!doctype html>
<html>
<head>
  <div id="viva">
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js">
      document.getElementById('#viva').contentWindow.location.reload();
    </script>
  </div>
</head>
<body>
  <script>    
    $('#ctl00_ContentPlaceHolder1_dgTracker').load('https://hit.vivatracker.com/Tracker/Tracker.aspx?StoreID=217&StartDate=2/7/2019&EndDate=2/7/2019&Deacts=Y');
  </script>
</body>
</html>

Thanks in advance.