get all html elements starting with classname code example
Example 1: javascript get all classes
var allHiddenElements = document.getElementsByClassName("hidden");
Example 2: javascript get all elements by class starting with
document.querySelectorAll("[class^=page]")