Friday 15 August 2014

javascript - Evaluate div.innerHTML with document.write -


I need to write information from external script in my script. I have an html page with div, and Write external script for div with window.onload .

  document.getElementById ('test'). InnerHTML = '& lt; Script src = "http://www.klerk.ru/kurs/informer/informer_txt/?stcbrf=1" & gt; & Lt; / Script & gt; '; Eval (document.getElementById ('test') innerHTML.);   

This external script has many document.write , but it does not work.

My question is how to implement document.write in fixed div

But, is it possible to do something like this? It:

  & lt; Table & gt; & Lt; TR & gt; & Lt; TD & gt; & Lt; Script src = "http://www.klerk.ru/kurs/informer/informer_txt/?stcbrf=1" & gt; & Lt; / Script & gt; & Lt; / TD & gt; & Lt; / TR & gt; & Lt; / Table & gt;   

and document.write in td ?

You can not load the javascript source file, which runs from any javascript The first initial page load is to come in the browser. The way a javascript reference can not be reached (technical reasons are unknown to me, I consider it to be security).

You can run eval against javascript code block, but javascript file (reference).

No comments:

Post a Comment