document.title就行吧
如果是字符串这样
<script>
var str = '<title>abcdef</title>';
var title = str.match(/<title>(.+?)<\/title>/);
alert(title&&title[1]||null);
</script>

解决方案 »

  1.   


    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <meta http-equiv="Content-Language" content="zh-CN" />
    <meta content="all" name="robots" />
    <meta name="author" content="盛飞, SenFe" />
    <meta name="Copyright" content="" />
    <meta name="description" content="" />
    <meta content="" name="keywords" />
    <script language="javascript"><!--
    function senfe(){
    alert(document.title);
    }
    --></script></head>
    <title>aaaaaaaaaaaaaa</title>
    <body onload="senfe()">
    </body>
    </html>
      

  2.   

    <script language="javascript"><!--
    function senfe(){
    alert(document.title);
    }
    --></script></head>
    <title>aaaaaaaaaaaaaa</title>
    <body onload="senfe()">
    </body>
      

  3.   

    ....... IE火狐下没问题document.getElementsByTagName("title")[0].innerHTML
      

  4.   


    正则:(?<=<(title)>).*(?=<\/\1>)