The website wants to be revamped, but there is an advertising problem. In the past, every time an advertisement was placed, I had to update all the articles on the site. This is both inconvenient and bad! Some of the articles previously recommended on the website have been changed to the ones recommended now! And it was a waste of my time. So I want to use Iframe to achieve it, but using iframe directly does not meet the standards. So how can I use it to comply with W3C standards?
Using "IFRAME" directly does not comply with "W3C web standards"
Use JS to standardize iframe.
1. Create a JS file with the following code: