How i can getelementbyid from div ?
my html:
<body>
<div id="name">my player name
</div>
<div id="c2canvasdiv">
<canvas id="c2canvas" width="1000" height="500">
</canvas>
</div>
</body>
now i must use CAllJS or something to get player name frome div ID. What i must write in execute?
i add to construct JS this:
"var "&name_player&" = document.getElementById('name');"
next
i set text --> name_player
but this dosent work;/
how i can put player name frome website to construct?