如何使用javascript获取chrome中的gmail组合窗口的innertext [英] how to get innertext of compose window of gmail in chrome using javascript
本文介绍了如何使用javascript获取chrome中的gmail组合窗口的innertext的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用javascript
How to get the inner text of body of compose window of gmail in chrome using javascript
推荐答案
轻松获取Chrome中撰写gmail窗口的主体内部文本。
当你打开gmail撰写窗口时,在(浏览器的javascript)控制台中输入:
Easy.
Enter this into the (browser's javascript) console when you have the gmail compose window open:
document.getElementById(':ma').innerHTML
您可以通过右键单击该区域并选择Inspect Element来自行查找。这会显示元素的html。你只需要使用相关的javascript来操作它。
You can find this out for yourself by right-clicking the area and selecting Inspect Element. That shows you the html for the element. You just have to use the relevant javascript to manipulate it.
这篇关于如何使用javascript获取chrome中的gmail组合窗口的innertext的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文