Document.write not working

Hi I’m trying to get this positioned on the page using javascript but it’s not working. How do you do this?

<script>document.write('<div style="position:fixed;bottom:0;left:0">');
TrustLogo("https://www.xxxxxxxx.com/seal.png","CL1","none");
document.write('</div">');</script>

perhaps this is a much better solution and the ‘correct’ way of doing it:

var el = document.createElement("div");
el.style.position = "fixed";
el.style.bottom = 0;
el.style.left = 0;
el.innerHTML = "Some text content";
document.body.appendChild(el);

How do you add the script inside the div?

Here’s how I been doing it:

<div style="position:fixed;bottom:0;left:0">
<script>TrustLogo("https://www.site.com/seal.png","CL1","none");</script>
</div>

Now I’m trying to move the script to the bottom of the page but my cart strips out the html from the script.

As long as everything is inside the script tags it will work.

What does the function TrustLogo return?
Depending on that maybe you can try:

var el = document.createElement("div");
el.style.position = "fixed";
el.style.bottom = 0;
el.style.left = 0;
el.innerHTML = TrustLogo("https://www.site.com/seal.png","CL1","none");
document.body.appendChild(el);

or

var el = document.createElement("div");
el.style.position = "fixed";
el.style.bottom = 0;
el.style.left = 0;
var image = TrustLogo("https://www.site.com/seal.png","CL1","none");
el.appendChild(image);
document.body.appendChild(el);

It;s for a SSL secure seal. There is a script that goes in the head section and this has to go below it. It makes the seal appear on the page.

I moved the top script in my combined scripts and moved them to the bottom but this little script has to go below that.

There is a module the moves the scripts the bottom but it strips out the script from between the divs and moves it to the bottom.

Anyway I tried your code and can’t get it working. Here’s how it looks in the source:

[code]

[/code]

you have a double equals in:

el.innerHTML==TrustLogo("https://www.site.com/sea.png","CL1","none");

should be

el.innerHTML=TrustLogo("https://www.site.com/sea.png","CL1","none");

also can you run the following?

var logo = TrustLogo("https://www.site.com/sea.png","CL1","none");
console.log('logo', logo);

and send us a screenshot of what you see in the web development console…
cheers

The only thing I get in Google chrome console is Uncaught ReferenceError: image is not defined

I get that with or without adding:

var logo = TrustLogo("https://www.site.com/sea.png","CL1","none"); console.log('logo', logo);

But if I remove the whole thing I don’t get that error.

So I might be doing it wrong. The seal works and shows up, just under the footer where I don’t wont it to. :slight_smile:

If i add it like this I don’t get any errors:

[code]

[/code]

Any ideas of what the parameters “CL1” and “none” are?. The TrustLogo function is probably trying to find an image placeholder that doesn’t exist. wondering if you can pass a reference to it in the parameters…

Not sure. I couldn’t find anything about from the ssl website.

I found reference to it in the main code but I don’t know what in means. Here is the main code : )

function TrustLogo(n,t,i){return host=location.host,current_code=t,tLUC(n,t,t,i)}function TrustLogo_MouseOver(n,t){return tLL(n,t)}function TrustLogo_MouseMove(n,t){return tLM(n,t)}function TrustLogo_MouseOut(n,t){return tLN(n,t)}function TrustLogo_Credentials(n,t){return tLWC(n,t)}function tLL(n,t){tLeB(n,tLiB(tLMC,t),tLRC(t))}function tLM(n){tLXB(n)}function tLN(n,t){tLTC(tLRC(t))}function tLWC(n,t){tLXC(tLiB(tLLC,t))}function tLXC(n){window.open(n,"tl_wnd_credentials"+ +new Date,tLYC)}function tLZC(n){for(var i,t=0;t<tLO.length;t++)if(tLO[t].src==n)return;i=new Image,i.src=n,tLO[tLO.length]=i}function tLaC(){tLZC(""),tLZC("")}function tLX(n){return String(n).replace(/\&/g,"&amp;").replace(/\</g,"&lt;").replace(/\>/g,"&gt;").replace(/\'/g,"&#27;").replace(/\"/g,"&#22;")}function tLY(n){return String(n).replace(/\%/g,"%25").replace(/\#/g,"%23").replace(/\&/g,"%26").replace(/\?/g,"%3f").replace(/\+/g,"%2b").replace(/\=/g,"%3d").replace(/\ /g,"+").replace(/\%/g,"%25")}function tLiB(n,t){return n+"v_shortname="+tLY(t)+"&v_search="+tLY(window.location.protocol+"//"+host+escape(window.location.pathname))+tLNC}function tLQC(n){return"if(window.open('"+tLX(tLiB(tLLC,n))+"','tl_wnd_credentials'+(new Date()).getTime(),'"+tLYC+"')){};tLlB(tLTB);"}function tLRC(n){var t="tl_popup";return tLi()&&!tLo()?t=t+n:tLi()&&tLo()&&(t=t+n),t}function tL1C(n,t,i){var u=n.split("."),r,f;if(u.length<2)return"";for(r=tLyC+t+"/"+i+"/"+u[u.length-1],f=u.length-2;f>=0;f--)r=r+"/"+u[f].substr(0,2)+"/"+u[f];return r=r+"/"+n+"."+t+"."+i+".gif",r=r.toLowerCase()}function tL0C(n,t){return n?(n==!0&&(n="small"),(n=="small"||n=="large")&&(n=tL1C(host,t,n)),n):!1}function tL9C(n,t){n&&t&&(t[0]=t[0]+n.offsetLeft,t[1]=t[1]+n.offsetTop,n.offsetParent&&(t[0]=t[0]-n.scrollLeft,t[1]=t[1]-n.scrollTop,tL9C(n.offsetParent,t)))}function tL2C(){var n=tLJB("tL4C"),i,r,t;for(n.style.pixelLeft=0,n.style.pixelTop=0,n.style.display="block",i=0,r=0,t=n.offsetParent;t;t=t.offsetParent)i+=t.clientLeft+t.offsetLeft-t.scrollLeft,r+=t.clientTop+t.offsetTop-t.scrollTop;i-=tL_C().clientLeft-tL_C().scrollLeft,r-=tL_C().clientTop-tL_C().scrollTop,tLzC=="topright"?(n.style.pixelLeft=i+tL_C().scrollLeft+tL_C().clientWidth-n.offsetWidth,n.style.pixelTop=r+tL_C().scrollTop):tLzC=="bottomright"?(n.style.pixelLeft=i+tL_C().scrollLeft+tL_C().clientWidth-n.offsetWidth,n.style.pixelTop=r+tL_C().scrollTop+tL_C().clientHeight-n.offsetHeight):tLzC=="bottomleft"?(n.style.pixelLeft=i+tL_C().scrollLeft,n.style.pixelTop=r+tL_C().scrollTop+tL_C().clientHeight-n.offsetHeight):tLzC=="topleft"&&(n.style.pixelLeft=i+tL_C().scrollLeft,n.style.pixelTop=r+tL_C().scrollTop),n.style.display="block"}function tL3C(){window.attachEvent("onscroll",tL2C),window.attachEvent("onresize",tL2C),window.attachEvent("onreadystatechange",tL2C),window.attachEvent("onload",tL2C),tLIC(tL2C,100),tLIC(tL2C,250),tLIC(tL2C,500),tLIC(tL2C,1e3),tLIC(tL2C,2e3),tLIC(tL2C,4e3),tLIC(tL2C,8e3)}function tLUC(n,t,i,r){var u,e,f,o;tLy()||(r=!1),n=tL0C(n,i),tLaC(i),u=tLRC(i),e=' style="position:absolute;z-index:0;visibility: hidden;background-color: transparent;overflow:hidden;"',tLi()&&!tLo()?(r&&(r=r.toString().toLowerCase(),r!="topright"&&r!="topleft"&&r!="bottomright"&&r!="bottomleft"&&r!="none"&&(r="topright"),r=="none"&&(r=!1),tLzC=r),tLJB(u)||(n&&(f="",r&&(f=f+'<div id="tL4C" style="zIndex:0;position:absolute;border:none;padding:0pt;margin:0pt;background-color:yellow;display:none;">'),f=f+'<a href="javascript:'+tLQC(t)+'" onmouseover="tLeB(event,\''+tLX(tLiB(tLMC,i))+"','"+u+'\')" onmousemove="tLXB(event)"onmouseout="tLTC(\''+u+'\')" ondragstart="return false;"><img src="'+tLX(n)+'" border=0 onmousedown="return tLKB(event,\''+tLX(tLiB(tLLC,t))+'\');" oncontextmenu="return tLLB(event);" /></a><!---->',r&&(f=f+"</div>",tL3C()),document.write(f)),document.write('<div id="'+u+'" name="'+u+'" '+e+" onmouseover=\"tLoB('"+u+"')\" onmousemove=\"tLpC('"+u+"')\" onmouseout=\"tLpB('"+u+"')\">&nbsp;</div>"))):tLi()&&tLo()?(o='<iframe src="'+tLX(tLiB(tLMC,i))+'" id="'+u+'tLDD" name="'+u+'tLDD" width="'+tLP+'" height="'+tLQ+'" frameborder="0" allowtransparency="true" style="background:green;width:'+tLP+";height:"+tLQ+'"></iframe>',tLJB(u)||document.write('<div id="'+u+'" name="'+u+'" '+e+" onmouseover=\"tLoB('"+u+"')\" onmousemove=\"tLpC('"+u+"')\" onmouseout=\"tLpB('"+u+"')\">"+o+"</div>"),n&&document.write('<a href="javascript:'+tLQC(t)+'" onmouseover="tLeB(event,\''+tLX(tLiB(tLMC,i))+"','"+u+'\')" onmousemove="tLXB(event)" onmouseout="tLTC(\''+u+'\')" ondragstart="return false;"><img src="'+tLX(n)+'" border=0 onmousedown="return tLKB(event,\''+tLX(tLiB(tLLC,t))+'\');" oncontextmenu="return tLLB(event);" /></a>')):n&&document.write('<a href="javascript:'+tLQC(t)+'" title="Click to verify" onmouseover="if(window.status=\'Click to verify\'){}"><img src="'+tLX(n)+'" border=0 oncontextmenu="return tLLB(event);" title="Click to verify" onmouseover="if(window.status=\'Click to verify\'){}"/></a><!---->')}function tLrC(n,t,i,r,u,f,e,o){return n+i<u?!1:t+r<f?!1:u+e<n?!1:f+o<t?!1:!0}function tLsC(n){return n.display=="none"?!1:n.visibility=="hidden"?!1:(n.visibility=="visible",!0)}function tLtC(n){if(!tLsC(n.currentStyle))return!1;while(n.currentStyle.visibility=="inherit"){if(n=n.parentElement,!n)return!0;if(!tLsC(n.currentStyle))return!1}return!0}function tLuC(n,t,i,r,u,f){var o,s,e;if(!f&&!tLtC(u))return!1;for(o=u.offsetLeft,s=u.offsetTop,e=u.offsetParent;e;e=e.offsetParent)o+=e.clientLeft+e.offsetLeft-e.scrollLeft,s+=e.clientTop+e.offsetTop-e.scrollTop;return o-=tL_C().clientLeft-tL_C().scrollLeft,s-=tL_C().clientTop-tL_C().scrollTop,tLrC(n,t,i,r,o,s,u.offsetWidth,u.offsetHeight)}function tLvC(n,t,i,r,u,f){for(var e=0;e<u.length;e++)if(tLuC(n,t,i,r,u[e],f))return!0;return!1}function tLjC(){return tLx()?!1||tL_C().clientWidth<tLP-10||tL_C().clientHeight<tLQ-10||tLvC(tLOB,tLPB,tLP,tLQ,document.getElementsByTagName("object"))||tLvC(tLOB,tLPB,tLP,tLQ,document.getElementsByTagName("embed"))||tLvC(tLOB,tLPB,tLP,tLQ,document.getElementsByTagName("applet"))||tLvC(tLOB,tLPB,tLP,tLQ,document.getElementsByTagName("select"))?!0:!1:!1}function tLz(){return tLi()&&!tLv()?!0:!1}function tLHB(){var t,n;if(tLGB)return tLGB;var i="UNSUPPORTED:tL_B::",a=i,c=i,l="MSIE5:tLtB:tLvB:tLyB:tLwB:tL3B:tL7B:tL5B:tLAC:tLBC::",e="MSIE5_5:tLtB:tLvB:tLyB:tLxB:tLwB:tL3B:tL7B:tL5B:tLAC:tLBC:tLCC:tLDC::",o=e,y=o,v="MACIE5_1:tLtB:tLvB:tLyB:tLzB:tLwB:tL3B:tL7B:tL5B:tLAC:tLBC::",b=i,k="OPERA6:tLvB:tL4B:tLxB:tLwB:tLyB:tL3B:tL7B:tL6B:tLsB::",p=i,f="NS6:tLvB:tLwB:tLyB:tL2B:tL8B:tL6B::",d=f,s=i,w="UP:tLtB:tLyB:tLwB:tL7B::",u="UPUP:tLtB:tLvB:tLyB:tLxB:tLwB:tL3B:tL7B:tL5B:tLAC:tLBC:tLCC:tLDC::",h=navigator.userAgent,r=navigator.appVersion;return tLGB=i,t=0,document.getElementById?(tLGB=u,t=h.indexOf("Opera "),t!=-1?(n=parseFloat(h.substring(t+6,t+10)),tLGB=n<5?s:n<=5.999?b:n<7?k:u):navigator.appName=="Microsoft Internet Explorer"?(t=r.indexOf("MSIE "),n=parseFloat(r.substring(t+5,t+9)),navigator.platform=="MacPPC"||navigator.platform=="Mac68K"?tLGB=v:(tLGB=u,tLGB=n<=3.5?a:n<=4.5?c:n<5.49?l:n<6?e:n<6.5?o:y)):navigator.appName=="Netscape"?(n=parseFloat(r),tLGB=n<4.7?i:n<4.8?p:f):tLGB=u):document.all?navigator.appName=="Microsoft Internet Explorer"?(t=r.indexOf("MSIE "),n=parseFloat(r.substring(t+5,t+9)),navigator.platform=="MacPPC"||navigator.platform=="Mac68K"?tLGB=v:(tLGB=u,tLGB=n<=3.5?a:n<=4.5?c:n<5.49?l:n<6?e:n<6.5?o:y)):tLGB=w:document.layers?navigator.appName=="Netscape"?(n=parseFloat(r),tLGB=n<4.7?s:n<4.8?p:f):tLGB=s:tLGB=i,tLGB}function tLIB(n){var t=tLHB();return(n=":"+n+":",t.indexOf(n)==-1)?!1:!0}function tLd(){return tLIB("tLtB")}function tLe(){return tLIB("tLuB")}function tLf(){return tLIB("tLvB")}function tLh(){return tLIB("tLxB")}function tLi(){return tLIB("tLyB")}function tLj(){return tLIB("tLzB")}function tLl(){return tLIB("tL1B")}function tLm(){return tLIB("tL2B")}function tLn(){return tLIB("tL3B")}function tLo(){return tLIB("tL4B")}function tLp(){return tLIB("tL5B")}function tLq(){return tLIB("tL6B")}function tLr(){return tLIB("tL7B")}function tLs(){return tLIB("tL8B")}function tLt(){return tLIB("tLAC")}function tLu(){return tLIB("tLsB")}function tLx(){return tLIB("tLCC")}function tLv(){return tLIB("tL_B")}function tLw(){return tLIB("tLBC")}function tLy(){return tLIB("tLDC")}function tLJB(n){return tLf()?document.getElementById(n):tLd()?document.all[n]:tLe()?document.layers[n]:null}function tLHC(n){window.clearTimeout(n)}function tLIC(n,t){return window.setTimeout(n,t)}function tLKB(n,t){return tLz()?n.button&2?(alert("This TrustLogo is protected"),tLp()?(n.cancelBubble=!0,n.returnValue=!1):tLq()&&(n.preventDefault(),n.cancelPropagation()),!1):n.button&1?!0:void 0:!0}function tLLB(n){if(tLz())return tLp()?(n.cancelBubble=!0,n.returnValue=!1):tLq()&&(n.preventDefault(),n.cancelPropagation()),!1}function tLMB(){tLz()&&(tLQB=0,tLnB(tLNB,tLOB,tLPB,tLTB))}function tL_C(){return document.compatMode=="CSS1Compat"?document.body.parentElement:document.body}function tLXB(n){if(tLz()&&!tLWB){var t,i,r=0,u=0,f=800,e=600;return tLn()?(r=tL_C().scrollLeft,u=tL_C().scrollTop,f=tL_C().clientWidth,e=tL_C().clientHeight,t=n.clientX+r,i=n.clientY+u):tLm()&&(t=n.pageX,i=n.pageY,r=window.pageXOffset,u=window.pageYOffset,f=window.innerWidth,e=window.innerHeight),tLOB=r+f>=t+tLP?t+tLU:r<=t-tLP?t-tLP-tLU:r+f/2-tLP/2,tLPB=u+e>=i+tLQ?i+tLV:u<=i-tLQ?i-tLQ-tLV:u+e/2-tLQ/2,!0}}function tLeB(n,t,i){var u;if(tLz()){(current_code=="CL1"||current_code=="SC5"||current_code=="SC4")&&(tLP=356,tLQ=259);var r='src="'+tLX(t)+'" id="'+i+'tLDD" name="'+i+'tLDD" width="'+tLP+'" height="'+tLQ+'"',f='src="'+tLlC+tLX(tLY(t))+'" id="'+i+'tLDD" name="'+i+'tLDD" width="'+tLP+'" height="'+tLQ+'"',e="<iframe "+r+' frameborder="0" allowtransparency="true" style="background:transparent;overflow:hidden;"></iframe>',o="<iframe "+f+' frameborder="0" allowtransparency="true" style="background:orange;overflow:hidden;" ondeactivate="tLIC(\'tLlB(\\\''+i+"\\');',1);\"></iframe>",s="<layer width="+tLP+" height="+tLQ+"><layer "+r+' style="position:relative;background:purple;" onmouseover="tLoB(\''+i+"')\" onmouseout=\"tLpB('"+i+"')\"></layer></layer>";if(tLjC())tLNB=o;else if(tLi())tLNB=e;else return;if(tLTB&&i!=tLTB&&(tLlB(tLTB),tLlB(i),tLmB()),!tLUB){if(tLi()&&(u=tLJB(i),u.style.visibility=="visible"))if(tLNB!=tLWB)tLRB&&(tLHC(tLRB),tLRB=0),tLlB(i),tLWB=tLNB;else{tLRB&&(tLHC(tLRB),tLRB=0);return}tLXB(n),tLTB=i,tLQB||(tLQB=tLIC("tLMB()",tLR),tLRB&&(tLHC(tLRB),tLRB=0))}}}function tLnB(n,t,i,r){var u,f,e;tLz()&&(n!=tLWB&&(tLRB&&(tLHC(tLRB),tLRB=0),tLlB(r)),tLWB=n,tLz())&&tLi()&&(u=tLJB(r),u.style.visibility="visible",u&&u.offsetParent&&(f=[-t,-i],tL9C(u.offsetParent,f),t=-f[0],i=-f[1]),tLr()?(u.style.pixelLeft=t,tLj()||(u.style.pixelTop=i),u.style.pixelWidth=tLP,u.style.pixelHeight=tLQ):(u.style.left=t+"px",tLj()||(u.style.top=i+"px"),u.style.width=tLP+"px",u.style.height=tLQ+"px"),u.style.borderWidth="0px",tLo()||(u.innerHTML=n),tLjC()&&(e=tLJB(r+"tLDD")),u.style.zIndex=0,u.style.visibility="visible")}function tLqC(){return!tLh()||tLjC()}function tLTC(n){tLz()&&(tLQB&&(tLHC(tLQB),tLQB=0),tLqC()?tLRB||(tLRB=tLIC('tLlB("'+n+'")',tLT)):tLRB||(tLRB=tLIC('tLlB("'+n+'")',tLS)))}function tLpC(n){tLz()&&(tLRB&&(tLHC(tLRB),tLRB=0),tLqC()&&tLRB==0&&(tLRB=tLIC('tLlB("'+n+'")',tLT)))}function tLoB(n){tLz()&&(tLRB&&(tLHC(tLRB),tLRB=0),tLqC()&&tLRB==0&&(tLRB=tLIC('tLlB("'+n+'")',tLT)))}function tLpB(n){tLz()&&(tLqC()?tLRB||(tLRB=tLIC('tLlB("'+n+'")',tLT)):tLRB||(tLRB=tLIC('tLlB("'+n+'")',tLS)))}function tLlB(n){if(tLz()){tLRB&&(tLRB=0),tLQB&&tLTB==n&&(tLHC(tLQB),tLQB=0),tLWB="";var t;(tLi()&&(t=tLJB(n)),tLz())&&(null==t||(tLi()?(t.style.visibility="hidden",t.innerHTML=""):t.visibility="hide"),tLVB||(tLUB=!0,tLVB=tLIC("tLmB()",tLW)))}}function tLmB(){tLVB&&(tLVB=0,tLUB=!1)}function createStyleRule(n,t){var o,i,s,u;if(document.getElementsByTagName&&(document.createElement||document.createElementNS)){var r=navigator.userAgent.toLowerCase(),f=r.indexOf("msie")!=-1&&r.indexOf("opera")==-1,e=f&&r.indexOf("win")!=-1,h=f&&r.indexOf("mac")!=-1;h||(o=document.getElementsByTagName("head")[0],i=typeof document.createElementNS!="undefined"?document.createElementNS("http://www.w3.org/1999/xhtml","style"):document.createElement("style"),e||(s=document.createTextNode(n+" {"+t+"}"),i.appendChild(s)),i.setAttribute("type","text/css"),i.setAttribute("media","screen"),o.appendChild(i),e&&document.styleSheets&&document.styleSheets.length>0&&(u=document.styleSheets[document.styleSheets.length-1],typeof u.addRule=="object"&&u.addRule(n,t)))}}var current_code="",tLB="SCAS",tLC="SCAS",tLD="SC",tLE="SC",tLF="SCOP",tLG="SCOP",tLH="SCCC",tLI="SCCC",tLnC="http://www.trustlogo.com/",tLhC,tLeC,tLYC,tLGB;window.location.protocol.toLowerCase()=="https:"&&(tLnC="https://secure.comodo.com/");var tLbC=tLnC+"trustlogo/images/popup/",tLlC=tLnC+"trustlogo/javascript/tl_tl_popupParent.htm#",tLyC=tLnC+"trustlogo/logos/",tLMC=tLnC+"ttb_searcher/trustlogo?",tLLC=tLMC+"v_querytype=W&";tLMC=tLMC+"v_querytype=C&";var tLNC="&x=6&y=5",tLgC=120,tLeC=374,tLhC=660;window.attachEvent&&(tLhC=660,tLeC=394);var tLP=237,tLQ=187,tLfC=60,tLiC=160;tLu()&&(tLP=tLP+20);var tLU=3,tLV=3,tLzC="",tLR=500,tLS=500,tLT=2e3,tLW=100,tLO=[];tLw()&&(screen.availHeight-tLgC<tLhC+tLiC&&(tLhC=screen.availHeight-tLiC,tLgC=0),screen.availWidth-tLfC<tLeC&&(tLeC=screen.availWidth,tLfC=0)),tLYC="toolbar=0,scrollbars=1,location=1,status=1,menubar=1,resizable=1,width="+tLeC+",height="+tLhC+",left="+tLfC+",top="+tLgC;var tLNB="",tLOB=0,tLPB=0,tLQB=0,tLRB=0,tLSB=null,tLTB="",tLUB=!1,tLVB=0,tLWB="";version=0,navigator.appVersion.indexOf("MSIE")!=-1&&(temp=navigator.appVersion.split("MSIE"),version=parseFloat(temp[1])),version>=5.5&&window.createPopup&&!(document.documentElement&&typeof document.documentElement.style.maxHeight!="undefined")?document.writeln('<style type="text/css">#comodoTL{display:none;font-size:8px;padding-left:18px;}</style>'):version=="9"?document.writeln('<style type="text/css">#comodoTL{display:block;font-size:8px;padding-left:18px;}</style>'):createStyleRule("#comodoTL","display:block;font-size:18px;padding-left:18px;");

Okay that code makes my brain hurt, it’s obfuscated. The thing is the script might not be very flexible and requires you to implement it in the original way… However you have other scripts conflicting with it so you might have to find a different solution. A little tricky… Will have a think about it and get back if something comes to mind

Thank you for helping. I’ll figure something out. My brain is hurting too. : )

Yes, that code is not developer friendly.
One thing I noticed is that it tests for MSIE5
Because that browser has been gone for quite some time now, I think you would be better off finding something else to replace it.

Here some instructions.You have a script that you try to put in a new div element with innerHtml the ‘TrustLogo(…)’
As you can wrote your code you have some incorrect syntax and unlogical errors.
In yuor code you are using the document write method to put -in someway- he div element.This is false.Because with document write method you can write a string text in document stream.
So as i understand you must follow these steps:
First Get the body element (or whatever element you want so to append to this the new element as I write next)
Two create a new div element;
Three Give to your new div element some CSS styles properties.
Four Assign at your new element the text that you want to has (innerHtml or text)
Five Append the new element in your body.
I created a code that makes all these steps but the important is to understand how you must thinking every time you have a code problem.

<script>
    var bodyElement=document.getElementsByTagName('body')[0];
    var newElement=document.createElement('div');
    newElement.style.position='fixed;bottom:0;left:0';
    newElement.innerHTML='TrustLogo("https://www.xxxxxxxx.com/seal.png","CL1","none")';
    bodyElement.append(newElement);    
 </script>

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.