Skip to content Skip to sidebar Skip to footer

Auto Refreshing With Javascript?

Sorry if this is a simple question (or answered before), but could anyone tell me how to download a page with JScript? I want to use Javascript to download the page 'example.php' o

Solution 1:

Using the jQuery framework's get function:

$.get('example', function(data) {
  if(data == "something")
     //perform action
});

Post a Comment for "Auto Refreshing With Javascript?"