--- title: nextPage - --- //[KSpigot](../../index.md)/[net.axay.kspigot.inventory](../index.md)/[InventoryGUIPageBuilder](index.md)/[nextPage](next-page.md) # nextPage [jvm] Brief description This button always tries to find the next page if clicked, and if a next page exists it is loaded. Content fun [nextPage](next-page.md)(slots: [InventorySlotCompound](../-inventory-slot-compound/index.md)<[T](index.md)>, itemStack: ItemStack, onChange: ([InventoryGUIClickEvent](../-inventory-g-u-i-click-event/index.md)<[T](index.md)>) -> [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)?)