prototype javascript library 1.5.1 examples
<script type="text/javascript" charset="utf-8">
function doc (argument) {
document.write(argument);
document.write("<br />\n");
}
doc(Prototype.Version);
doc(document.evaluate);
doc(!!document.evaluate);
doc(Prototype.emptyFunction);
doc(Prototype.K('test'));
var reg = new RegExp(Prototype.ScriptFragment);
doc(reg);
doc(reg.source);
var script = '<script type="text/javascript" charset="utf-8">var x;<\/script>';
var rs = reg.exec(script);
doc(rs.length);
</script>
No comments :
Post a Comment