You can put this solution on YOUR website! If you have a regular polygon (all sides and all angles are equal), then the formula for the area is
1/2 height * perimeter
If you have an irregular polygon then you must know the coordinates of all the vertices.