dojo - dojo tutorial ample page in dojo - coding dojo - dojo examples
This example is a sample page that shows how to use Dojo to display a "Hello world" text inside <h1> tag.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Dojo sample</title>
<script src="//ajax.googleapis.com/ajax/libs/dojo/1.12.1/dojo/dojo.js" data-dojo-config="async: true"></script>
</head>
<body>
<h1 id="Hello"></h1>
<script>
require([
'dojo/dom'
], function(dom) {
dom.byId('Hello').innerHTML = 'Hello world';
});
</script>
</body>
</html>