Method: hasPage

From Turn.js Documentation
Revision as of 06:20, 26 November 2012 by Emmanuel (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Returns true if the flipbook has a page.

Parameter Type Description Default Value
pageNumber Number Page Number You must specify this parameter


function checkPage(page)  {
  if ($("#flipbook").turn("hasPage", page)) {
    alert("Page "+page+" is already in the flipbook");

// Check if page 1 is in the flipbook


<yambe:breadcrumb>Turn Methods</yambe:breadcrumb>