14 lines
248 B
Text
14 lines
248 B
Text
|
|
1) we add a new "alert" primitive to the lambdatalk's dictionary
|
||
|
|
|
||
|
|
{script
|
||
|
|
LAMBDATALK.DICT["alert"] = function() {
|
||
|
|
var args = arguments[0];
|
||
|
|
alert( args )
|
||
|
|
};
|
||
|
|
}
|
||
|
|
|
||
|
|
2) and we call it
|
||
|
|
|
||
|
|
{alert GoodBye World}
|
||
|
|
-> display a standard Alert WIndow.
|