Views
Actions

Method: hasPage

From Turn.js Documentation
Revision as of 09:28, 6 July 2012 by Emmanuel (Talk | contribs)

Jump to: navigation, search

Returns true if the flipbook has a page.

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

Example:

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

checkPage(1);
Main Page > API > Turn Methods > Method: hasPage