Posts by Roberth Godoy • 107 points
3 posts
-
-3
votes2
answers3358
viewsA: Javascript code does not work on Chrome
Try to add the following code: window.document.onload = function(e){ var teste = document.getElementById("teste"); teste.addEventListener('click', function(){ alert(1); }); } Thus the event will be…
javascriptanswered Roberth Godoy 107 -
1
votes3
answers1170
viewsA: How do I share posts from my website on facebook?
You need to use the API by pointing to the current page url: <div class="fb-share-button" data-href="URL DA SUA PÁGIA ATUAL" data-layout="box_count" data-size="large"…
-
10
votes2
answers10588
viewsQ: Send image by selecting it and show thumbnail without refreshing the page
How do I code to send an image when selecting it during registration? And after sent appear in the form a thumbnail, so the user continue filling the rest of the form. Similar to what is done in…