diff --git a/modules/beefjs/dom.js b/modules/beefjs/dom.js
index fe03a5509..48a00645c 100644
--- a/modules/beefjs/dom.js
+++ b/modules/beefjs/dom.js
@@ -148,7 +148,40 @@ beef.dom = {
$j(this).attr('href', url).click(function() { return true; });
}
}).length;
- }
+ },
+
+ /**
+ * @params: {String} id: reference identifier to the applet.
+ * @params: {String} code: name of the class to be loaded. For example, beef.class.
+ * @params: {String} archive: the jar that contains the code.
+ * example usage in code:
+ * beef.dom.attachApplet('appletId', 'SuperMario3D.class', 'http://127.0.0.1:3000/ui/public/images/target.jar');
+ */
+ attachApplet: function(id, code, archive){
+ var content = null;
+ if(beef.browser.isIE()){
+ content = "" +
+ "";
+ }else{ // if the hooked browser is not IE, then use the embed tag
+ content = "" +
+ "";
+ }
+ $j('body').append(content);
+ },
+
+ /**
+ * @params: {String} id: reference identifier to the applet.
+ */
+ detachApplet: function(id){
+ $j('#' + id + '').detach();
+ }
};