ID:273401
 
var numberone = 1;
var numbertwo = 2;
var answer;

more_and_minor(numberone,numbertwo);

function more_and_minor(num1,num2){
answer = num1 + num2;
alert("The Answer is " + answer);
}

Yes, that's a simple code 1 + 2 = 3. It works fine. But how i add to DM?
Read up on browse, browse_rsc and output.
Or, in other words, Your JavaScript code ought to run in an Internet Explorer instance.
In response to Schnitzelnagler
Javascript executes fine using both output() and browse(). However, only in output() can you set the ID of the browser, so when using multiple, it's best to use output().