Содержание

checkAvailability

Checks the availability of the specified page. Terminates performing of the task, if the page was unavailable.

Syntax

checkAvailability = function(aPage, aExpectedIP, aIncludedText, aUserAgent);
checkAvailability = function(aCheckItems);

Parameters

Notes

Examples

  1. checkAvailability('habrahabr.ru');
  2. checkAvailability('habrahabr.ru', '178.248.233.33');
  3. checkAvailability('habrahabr.ru', '178.248.233.33', 'habr');
  4. checkAvailability([
      {"page":"habrahabr.ru","expectedIP":"178.248.233.33","includedTextt":"habr"},
      {"page":"liveinternet.ru","includedText":"stat","userAgent":"my ua"}
    ]);