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
    399 Views
  • How to Select multiple iframes

    Support
    0 Votes
    1 Posts
    401 Views
  • 3 Votes
    7 Posts
    876 Views
  • How to access iframe elements?

    Support
    0 Votes
    1 Posts
    456 Views
  • CSS>Element-id>Match>text

    Support
    0 Votes
    2 Posts
    877 Views