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

Support
  • 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

  • Js is not working in BAS

    Support
    0 Votes
    1 Posts
    553 Views
  • 3 Votes
    7 Posts
    1139 Views
  • 0 Votes
    2 Posts
    1568 Views
  • 0 Votes
    2 Posts
    1338 Views
  • <BACK>

    Support
    0 Votes
    2 Posts
    998 Views