本帖最后由 candata 于 2010-12-29 12:23:39 编辑

解决方案 »

  1.   

    A页面<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>无标题文档</title>
        <script language="javascript">
            function jikongconnect() {
                window.open("HTMLPage16.htm?" + document.bb.tes.value);
            }
        </script>
    </head>
    <body>
        <form name="bb" id="bb">
        <table>
            <tr>
                <td width="139" align="left" onclick="jikongconnect()" valign="bottom">
                    &nbsp;&nbsp;<input type="hidden" name="tes" id="tes" value="1" /><font color="#999999">生产集控系统</font>
                </td>
            </tr>
        </table>
        </form>
    </body>
    </html>
      

  2.   

    B页面
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>无标题文档</title>
    </head>
    <body>
        <script language="javascript">
            window.onload = function () {
                var s = location.search;
                s = s.substr(1, s.length - 1);
                alert(s);
            }
        </script>
    </body>
    </html>
      

  3.   

    传值取值就是这样,希望对楼主有用。
    这个方法出自这里:http://topic.csdn.net/u/20100605/17/e4ffe6ee-abfc-42e1-b0ed-bd7050303dd3.html
      

  4.   

    <form name="form1" action="" method="post">
    <input name="keyword" id="keyword" type="text">
    <input type="radio" value=" http://www.google.cn" name="gturl" checked="checked"/>去谷歌
    <input type="radio" value=" http://www.qq.com" name="gturl"/>去腾讯
    <input type="radio" value=" http://www.baidu.com" name="gturl"/>去百度<br />
    <input type="button" value="提交选择" onclick="gotourl()"/>
    </form>
    <script language="javascript" type="text/javascript">
    function gotourl()
    {
     var rdolist = document.getElementsByName('gturl');
     for(var i=0;i<rdolist.length;i++)
     {
      if(rdolist[i].checked)
      {
       window.location.href=rdolist[i].value+"?keyword="+form1.keyword.value;   return;
       }
      }
     }
    </script>靠人不如靠己,已经解决