简体   繁体   中英

Multiple CGI scripts in an HTML frameset

I have multiple (3-4) CGI scripts which should be presented on one HTML page.

I tried this:

<html>
<head>
<title>Testing</title>
</head>
<body>

  <h1>TESTPAGE<BR></h1>

  <frameset cols="35%,20%,*">
    <frame src="./cgi-bin/1.cgi">
    <frame src="./cgi-bin/2.cgi">
    <frame src="./cgi-bin/3.cgi">
  </frameset>

</body>
</html>

Only TESTPAGE is shown, no cgi was opened.

Your HTML is invalid. A validator would have told you what the problem was.

You can't have a <frameset> inside a <body> . You use a <frameset> instead of a <body> .

When your browser encounters the <frameset> , it is already rendering a normal HTML body, so it ignores it because it has no place to put it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM