HTML page:
<!DOCTYPE HTML Public "-//wapforum//dtd XHTML Mobile 1.0//en" "Http://www.wapforum.org/DTD/xhtml-mobile10.dtd"><HTMLxmlns= "http://www.w3.org/1999/xhtml"><Head><Metahttp-equiv= "Content-type"content= "text/html; charset=utf-8" /><Metaname= "Format-detection"content= "Telephone=no" /><Metahttp-equiv= "Access-control-allow-origin"content="*"><Metaname= "Viewport"content= "User-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, Width=device-width" /><Linkrel= "stylesheet"href=".. /css/base.css "><Scriptsrc=".. /js/jquery-2.1.1.min.js "></Script><title>Calling parameters in a JSP</title></Head><Body><ahref= "javascript:;"ID= "Shengji"class= "Shengji">Click Get Parameters</a><iframeID= "Myf"src= "newestapp.jsp"frameborder= "0"scrolling= "No"width= "0"Height= "0"></iframe><Scripttype= "Text/javascript"> functionCalliframefield () {return $("#myf")[0].contentwindow.url_con; } $('. Shengji'). Click (function(){ varURL=Calliframefield (); Alert (URL)})</Script></Body></HTML>
JSP page:
<!DOCTYPE HTML Public "-//wapforum//dtd XHTML Mobile 1.0//en" "Http://www.wapforum.org/DTD/xhtml-mobile10.dtd"><HTMLxmlns= "http://www.w3.org/1999/xhtml"><Head><Metahttp-equiv= "Content-type"content= "text/html; charset=utf-8" /><Metahttp-equiv= "Cache-control"content= "No-cache"/><Metaname= "Viewport"content= "width=device-width; initial-scale=1.0; minimum-scale=1.0; maximum-scale=1.0 "/><Metaname= "Mobileoptimized"content= " the"/></Head><Body><Script> varUrl_con= "http://www.baidu.com";//HTML parameters can also be used, why use JSP, because the URL here to get the background Java support, JSP code omitted. The parameters can be successfully transmitted. </Script></Body></HTML>
HTML5 page invoke parameters in JSP page