<!doctype html public "-//w3c//dtd html 4.0 tRANSITIONAL//en">
<html>
 <head>
  <title id="2"> </title>
  <meta name="gENERATOR" content="eDITpLUS">
  <meta name="aUTHOR" content="">
  <meta name="kEYWORDS" content="">
  <meta name="dESCRIPTION" content="">
  <script>
function test()
{
var a = document.getElementById("1").value
var b = document.getElementById("2").value
if(1==1)
{
b=a;
}
}
  </script>
 </head> <body>
<input type="text" id="1"><input type="button" value="修改标题" onclick="test()">
 </body>
</html>
我要怎样才能修改标题