Sunday, March 18, 2007

Dojo button with an image

The code for this is:
<script type="text/javascript">
var djConfig = {isDebug: true};

<SCRIPT type="text/javascript" src="http://localhost/DoAjax/dojo.js"> </script>
<script type="text/javascript">
<script type="text/javascript">
function test(){
alert("Hello, Welcome to Dojo");
<body> <h2>Test</h2>

<button dojoType="button" ><img src="http://localhost/DoAjax/Bird.gif"/></button>

Then you will see:

1 comment:

Sandeep Bhandari said...

thanks for the code. if some one wants to look at all the dojo button icon classes which can be added to the css of buttons then dojo offers a lot of classes like new, delete and edit etc. Protection Status