<-¾ÖÇø´ | |
<-ÀÚ¹Ù ½ºÅ©¸³Æ® Form |
<APPLET NAME = liveapplet : NAME ű׸¦ Áà¾ß ÀÚ¹Ù ½ºÅ©¸³Æ®¿¡¼
¾ÖÇø´ °´Ã¼¸¦ ¾Ë ¼ö ÀÖ´Ù.
MAYSCRIPT
: MAYSCRIPT ´Â ÀÚ¹Ù ½ºÅ©¸³Æ®¿¡°Ô ÀÌ ¾ÖÇø´¿¡ Á¢±ÙÇÒ ±ÇÇÑÀ» ÁØ´Ù.
CODE = LiveApplet WIDTH=100 HEIGHT=50 : ÀϹÝÀûÀÎ ¾ÖÇø´ ű׵é
>
</APPLET>
¾ÖÇø´ ¼Ò½º:LiveApplet.java
2. ÀÚ¹Ù ¾ÖÇø´¿¡¼ ÀÚ¹Ù ½ºÅ©¸³Æ® ÇÔ¼ö¸¦ È£ÃâÇÏ´Â
ºÎºÐ
JSObject win
= null;
win = JSObject.getWindow(this);
win.eval("alert(\"Exception:Malformed
URL!\");");
String argv[]={urlstring,
"newWindow", "200", "100"};
win.call("openWindow",
argv);
ÇöÀç ¾ÖÇø´À» Æ÷ÇÔÇÏ°í ÀÖ´Â ºê¶ó¿ìÀú À©µµ¿ì¿¡
´ëÇÑ ÂüÁ¶¸¦ ±¸ÇÏ´Â ÇÔ¼ö°¡ static ÇÔ¼öÀÎ netscape.javascript.JSObject.getWindow(this)
ÀÌ´Ù.
ÀÚ¹Ù ½ºÅ©¸³Æ®ÀÇ ³»Àå ÇÔ¼ö(¿©±â¼´Â alert)¸¦ È£ÃâÇÒ
¶§¿¡´Â eval("ÇÔ¼ö") ¸Þ¼Òµå,
»ç¿ëÀÚ Á¤ÀÇ ÇÔ¼ö(¿©±â¼´Â openWindow)¸¦ È£ÃâÇÒ
¶§¿¡´Â call("ÇÔ¼ö À̸§", ÀÎÀÚ_¹è¿) ¸Þ¼Òµå¸¦ È£ÃâÇÑ´Ù.
Âü°í : ÀÎÅÍ³Ý ÀͽºÇ÷η¯ 4.0 À̻󿡼µµ netscape.javascript.JSObject¸¦ Áö¿øÇÑ´Ù.