Possible Duplicate:
JavaScript equivalent to printf/string.format
Equivalent of String.format in JQuery
Is there any built javascript or jquery function that behaives like .net's in string.format()?
Or like javascript's console.log string repclament?
console.log('aString %s', 'valueToReplace')
Javascript string formatyields many hits. If that isn't powerful enough, there is aJavascript sprintfwhich is far more powerful.