The determinant of a matrix A is by definition the product of the elements of its main diagonal if the matrix is triangular by rows, i.e., the elements are $0$ when $i>j$.
Would the determinant be the product of the secondary diagonal if all elements are $0$ when $i+j≤n$?
This is what I mean by a triangular by columns matrix $$ \begin{matrix} 0 & 0 & x^2 \\ 0 & y & y^2 \\ 1 & z & z^2 \\ \end{matrix} $$
No. "Triangular by rows" is usually called "upper triangular", and "triangular by columns" is "lower triangular". In both cases the determinant is the product of the elements on the main diagonal.