display height and width of a div when clicked | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

display height and width of a div when clicked

so i made some shapes(shapes are made with user input) with div tags, and i want to show the user the height width etc (of the shape) when clicked. is there a function to do that? i couldn't find anything after googleing for a few hours.

31st Jan 2018, 4:01 AM
Matthew Mubarak
Matthew Mubarak - avatar
2 Answers
+ 6
yes. show the code within the codeplayground.
31st Jan 2018, 4:09 AM
Vitaliy Angelov (Rostov-on-Don)
Vitaliy Angelov (Rostov-on-Don) - avatar
+ 1
one of my buddies helped me find a solution. Thanks though sorry i'm late.
31st Jan 2018, 8:58 PM
Matthew Mubarak
Matthew Mubarak - avatar