SHARE
TWEET

Untitled

a guest Dec 5th, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function szeddszet (){    
  2. s= document.urlap.szoveg.value;
  3. var t=new Array();
  4. t=s.split (",");
  5. var hossz=0
  6. for(i=0; i<t.length; i++){
  7.     document.body.innerHTML+="Tömb elemei:"+t[i]+"<br>";
  8.     hossz+=t[i].length;
  9. }
  10. document.getElementById('info').innerHTML="A tömb elemei "+hossz+" betűt tartalmaznak";
  11. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top