2010-11-18 4 views
0

iGoogle 가젯에서 document.write() 속성을 찾고 있는데, 아래에서 iGoogle 가젯에서 어떻게 할 수 있습니까? 즉, 스크립트에서 stdout var을 원한다.iGoogle에서 document.write를 사용 하시겠습니까?

Example with document.write()

<html> <body> 

<script type="text/javascript"> var firstname; firstname="Hege"; document.write(firstname); document.write("<br />"); firstname="Tove"; document.write(firstname); </script> 

<p>The script above declares a variable, assigns a value to it, displays the value, changes the value, and displays the value again.</p> 

</body> </html> 

답변

1

단순히 CDATA

<?xml  version="1.0"  encoding="UTF-8"?> 
<Module> 
<ModulePrefs title="hello world example" /> 
<Content type="html"><![CDATA[ 
<html> 
<body> 
<script type="text/javascript"> 
var firstname; 
firstname="Hege"; 
document.write(firstname); 
document.write("<br />"); 
firstname="Tove"; 
document.write(firstname); 
</script> 
<p>The script above declares a variable, 
assigns a value to it, displays the value, changes the value, 
and displays the value again.</p> 
</body> 
</html> 
 ]]></Content></Module> 
와 콘텐츠 태그 [TYPE = HTML]에 코드를 묶
관련 문제