The example in this article describes the method of realizing automatic adaptive height of iframe in js. Share it with everyone for your reference. The details are as follows:
When writing web pages, it is often necessary to automatically scale the iframe height. If a list is embedded in the ifram, then after adding data and refreshing the list, the iframe height will automatically extend. After deleting the data, the iframe height should be automatically shortened.
Copy the next piece of code to the html or jsp page where the iframe is located. Just call this function after the