login  Naam:   Wachtwoord: 
Registreer je!
 Overzicht:
Overzicht > JavaScript > string.fromCharCode()

Gebruik:
string.fromCharCode()

Uitleg:
Creëert een string gebruik makend van de volgorde van opgegeven UNICODE waarden.


Voorbeeld:
string1 = "test"
document.write(string1.fromCharCode())

Bijdragen :
Marcuzzo81
de juiste syntaxis voor de fromCharCode methode is:

  1. String.fromCharCode([ASCII_CHR]);


waarbij "String" het JavaScript object String is en niet een aangemaakt object als:
  1. var str = "dit is een string";
  2. document.write(str.fromCharCode());

maar:

  1. var a = new Array(100, 105, 116, 32, 105, 115, 32, 101, 101, 110, 32, 116, 101, 115, 116);
  2. var sChar="";
  3. for(var i = 0; i< a.length;i++){
  4. sChar += String.fromCharCode(a[i]);
  5. }
  6. document.write(sChar);


 Overzicht
Array()
array.concat()
array.join()
array.length
array.pop()
array.push()
array.reverse()
array.unshift()
charAt()
concat()
document.anchors()
document.captureE...
document.clear()
document.close()
document.contextu...
document.elementF...
document.lastModi...
document.links()
document.open()
document.releaseE...
document.routeEve...
document.title
document.URL
document.write()
document.writeIn()
escape()
eval()
getSelection()
history.back()
history.forward()
history.go()
history.length
indexOf()
length
Math.abs()
Math.acos()
Math.asin()
Math.atan()
Math.ceil()
Math.cos()
Math.E
Math.exp()
Math.floor()
Math.log()
Math.max()
Math.min()
Math.PI
Math.pow()
Math.random()
Math.round()
Math.sin()
Math.sqrt()
Math.tan()
navigator.appCode...
navigator.appName()
navigator.appVers...
navigator.cookieE...
navigator.javaEna...
navigator.platform()
navigator.taintEn...
onAbort()
onBlur()
onChange()
onClick()
onDblClick()
onError()
onFocus()
onKeyDown()
onKeyPress()
onKeyUp()
onLoad()
onMouseDown()
onMouseMove()
onMouseOut()
onMouseOver()
onMouseUp()
onMove()
onReset()
onResize()
onSelect()
onSubmit()
onUnload()
parseFloat()
parseInt()
print()
reload()
setTimeout()
string.big()
string.blink()
string.bold()
string.charCodeAt()
string.fixed()
string.fontcolor()
string.fontsize()
string.fromCharCo...
string.indexOf()
string.intalics()
string.length()
string.link()
string.match()
string.slice()
string.split()
substr()
toLowerCase()
toUpperCase()
unescape()
window.alert()
window.blur()
window.clearTimeo...
window.close()
window.confirm()
window.focus()
window.prompt()
window.screen()
window.setInterval()
window.setTimeout()



© 2002-2024 Sitemasters.be - Regels - Laadtijd: 0.017s