https://teratail.com/questions/288852
質問者「document.writeは非推奨なので」
山辺「frameも非推奨です」

https://teratail.com/questions/289302
山辺「なんどもしつこいようですが、frame自体が非推奨です」