SoFunction
Updated on 2025-03-01

jsp page iframe highly adaptive js code

The following operations are written in the body and outside the form form

<iframe  name="agentFrame" src="" width="0" height="0" style="display:none;" ></iframe> 
<script type="text/javascript"> 
function sethash(){ 
hashH = ; //Get your own heighturlC = "/"; //Set iframeA's src("agentFrame").src=urlC+"#"+hashH; //Pass the height as a parameter} 
=sethash; 
</script>

as follows:

<%@ page contentType="text/html;charset=GBK" language="java"%> 
<script> 
function pseth() { 
var iObj = ('infoFrame'); 
iObjH = ["infoFrame"].frames["agentFrame"].; 
 = ("#")[1]+"px"; 
} 
=pseth(); 
</script>