1
A
答えて
1
document.write()
はGreasemonkeyから断続的にしか動作しないようです - おそらくサンドボックスのためです。
まだ問題を再現するための簡単なレシピは見つかりませんでした。
しかし、DOMベースのアプローチは常に機能しているようです。このコードを使用します。
//--- Erase everything from the page's body:
var b = document.body;
var p = b.parentNode;
p.removeChild (b);
//--- Add our new text or HTML.
var newB = document.createElement ("BODY");
newB.innerHTML = "Hello";
p.appendChild (newB);
PS:私も私の他の答えを更新しました。
関連する問題
- 1. 別のhtmlページのDocument.write
- 2. document.writeでページを更新するには
- 3. document.writeの束で書かれているvb.netのWebページを解析するには?
- 4. JavaScript:Multiple Document.Write
- 5. のdocument.write問題
- 6. iGoogleのdocument.write?
- 7. のdocument.write()のsetTimeout()内のすべてのページを上書き
- 8. document.writeはdocument.writeにネストされています
- 9. document.Write()はすべてのページの内容を上書きします
- 10. XULとdocument.write()
- 11. JavaScript document.write Chrome
- 12. document.write check readyState
- 13. Response.write対Document.write
- 14. JavaScript-document.write not working
- 15. NS_ERROR_XPC_BAD_CONVERT_JS with document.write
- 16. document.write(smth)doesnt work
- 17. JS document.write not printing
- 18. リンクはWebページ
- 19. document.write()を使わずにiframeに完全なHTMLページを書く
- 20. のdocument.getElementByIdは、ここでのdocument.write
- 21. document.writeの出力の問題
- 22. の交換「のdocument.write()が」
- 23. document.write/.appendChildの起源のトレース
- 24. Javascriptの "document.write()"内のPHPコード
- 25. 静的Webページと動的Webページの違いは?
- 26. JQuery $(document).ready()とdocument.write()
- 27. 私は、HTML Webページ
- 28. WebBrowserコントロールは、Webページ
- 29. document.writeとJSONの出力
- 30. Pythonは、Webページのフォーム
彼らは私のためにうまくいくようです。あなたはどんなjavascriptのエラーも出ますか? –