if document getElementsByClassNa me document getElementsByClassNa me p

1
2
3
4
5
if (document.getElementsByClassName) {
x = document.getElementsByClassName("pagination")
if ( x.length>y) {
x.style.visibility = "hidden";