⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 25.5.htm

📁 这是我卖的书上的源码 这书是电子邮电出版的是有关网络编程 有详细的例子
💻 HTM
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Iframe RPC</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body>
<form action="#" method="get">
  <input type="text" name="username" id="username">
  <input type="button" value="send" onclick="send(this.form.username.value);"> 
</form>
<h1>The Server Response</h1>
<div id="response"></div>
<script type="text/javascript">
<!--
  var theIframe = document.createElement("iframe");
  theIframe.setAttribute("src", "");
  theIframe.setAttribute("id", "myIframe");
  theIframe.style.visibility='hidden';
  document.body.appendChild(theIframe);
function send(sendValue)
   {
     var newLocation = 'iframeResponse.php?sendvalue='+escape(sendValue);
     theIframe.src = newLocation;
   }
function RPCComplete(msg)
    {
     var region = document.getElementById('response');
     region.innerText = msg;
    }
//-->
</script>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -