Posts by Alessandro Rodrigues • 3 points
2 posts
-
0
votes4
answers2540
viewsA: Checkbox that selects all
Solved: function marcarTodos(marcar){ var itens = document.querySelectorAll("input"); var i = 0; for(i=0; i<itens.length;i++){ itens[i].checked = marcar; } }…
javascriptanswered Alessandro Rodrigues 3 -
0
votes8
answers6579
viewsA: Check user browser in PHP
Corrected: function Navegador() { $MSIE = strpos($_SERVER['HTTP_USER_AGENT'],"MSIE"); $MSIE2 = strpos($_SERVER['HTTP_USER_AGENT'],"Trident"); $Firefox =…