Chrome extension not loading EventListener

前端 未结 2 1928
轻奢々
轻奢々 2021-01-28 16:43

I\'ve been creating a chrome extension that splits my new tab pages into 2 frames so I can try to load 2 different URLs. Right now I\'ve started off simple, but I can\'t get the

2条回答
  •  悲哀的现实
    2021-01-28 17:03

    Move this script from Bakcground.html to Left@Right.html

     
    

    And then in the script.js remove the "." before click

    document.getElementById("loader").addEventListener.("click", loadUrl);
    

    the above line should be

    document.getElementById("loader").addEventListener("click", loadUrl);
    

提交回复
热议问题