การคัดลอกรหัสมีดังนี้:
ฟังก์ชั่น setcwinheight (obj) {
var cwin = obj;
if (document.getElementById) {
ถ้า (cwin &&! window.opera) {
if (cwin.contentDocument && cwin.contentDocument.body.offSetheight)
cwin.height = cwin.contentDocument.body.offSetheight + 30;
อื่นถ้า (cwin.document && cwin.document.body.scrollheight)
cwin.height = cwin.document.body.scrollheight + 30;
-
-
-
การคัดลอกรหัสมีดังนี้:
<iframe id = "iframeid_help" scrolling = "no" onload = "javascript: setcwinheight (นี่)"
width = "670px" style = "border: 0px" frameBorder = "0"> </iframe>