search

Home  >  Q&A  >  body text

node.js - How does electron get the elements in webview, which is the loaded website?

When loading an online website, how do I get the elements in the webview? I can't get them. I hope someone can give me some advice! I'm a newbie and I still don't understand it

大家讲道理大家讲道理2752 days ago1121

reply all(1)I'll reply

  • 巴扎黑

    巴扎黑2017-05-16 13:44:29

    ##获取iframe
    var frame =document.getElementById("iframeId");
    ##获取iframe document
    frame.contentWindow.document.getElementById("inputId");

    reply
    0
  • Cancelreply