• <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>
  • 如何用javascript在IE 標題欄顯示Title

    發表于:2007-06-21來源:作者:點擊數: 標簽:
    有時候我們想在IE中顯示html頁面的title,例如,在我們查看新聞的時候,我們就會看到新聞的title在ie的標題欄顯示,那么我們如何來實現呢?其實很簡單,只需要在你的網頁上加如以下一段 java script代碼就可以了。 script window.document.title="你的title"; /

       
      有時候我們想在IE中顯示html頁面的title,例如,在我們查看新聞的時候,我們就會看到新聞的title在ie的標題欄顯示,那么我們如何來實現呢?其實很簡單,只需要在你的網頁上加如以下一段javascript代碼就可以了。
    <script>

        window.document.title="你的title";
    </script>
    但是如果你想動態改變的話,這樣一來來實現了,例如在JSP中的實現:

    <script type="text/javascript" language="javascript">      
            window.document.title='<%=exp.getExpTitle()%>';        
    </script>

    動態的內容取得后要以字符串的形式顯示,所以就要放在單引號里面。
    好了,如果你也需要此功能的話,就可以嘗試一下。如果有更好的方法,別忘了告訴我:)

    原文轉自:http://www.kjueaiud.com

    老湿亚洲永久精品ww47香蕉图片_日韩欧美中文字幕北美法律_国产AV永久无码天堂影院_久久婷婷综合色丁香五月

  • <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>