JS => Replacing Document Body with iframe tag not woking !



  • it's Working on Normal Browser With console command

    document.body.innerHTML = '<iframe width="560" height="315" src="https://www.youtube.com/embed/GtZaKSWGJFE" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>';
    

    or

    document.getElementsByTagName('body')[0].innerHTML = '<iframe width="560" height="315" src="https://www.youtube.com/embed/GtZaKSWGJFE" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>';
    

    359f41f4-9f23-425e-aed8-697d87a1ea0f-image.png

    But it's Not Working on BAS Via Browser Javascript command

    2d4a9f30-3953-42d5-8a29-2cee34e4bdfe-image.png


Log in to reply
 

  • 2
  • 3
  • 2
  • 2
  • 2
  • 5
  • 2
  • 7