setting Modal window title dynamically?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nitinmukesh123
    New Member
    • May 2007
    • 2

    setting Modal window title dynamically?

    Hi I am facing a problem with setting the modal window title..

    source of 1.html

    [PHP]<html>
    <head>
    <script language="javas cript">
    function openNewWin() {
    window.showModa lDialog("2.html ", self, "status: Yes;dialogWidth :500px;dialogHe ight:400px");
    }
    </script>
    </head>
    <body onLoad="openNew Win();">
    </body>
    </html>[/PHP]


    source of 2.html

    [PHP]<html>
    <head>
    <script language="javas cript">
    window.document .title = "Nitin"
    if (window.dialogA rguments) {
    window.opener = window.dialogAr guments;
    }
    function setTitle() {
    document.title = "NewTitle"
    alert(document. title)

    }
    </script>
    </head>
    <body>
    <input type="button" value="Change title" onClick="setTit le();">
    </body>
    </html>[/PHP]



    I run 1.html file and click on button to change the title in alert it shows the updated title but the title bar value is not updated.

    Can anyone help
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    It's a bug - see this.

    showModalDialog only works in IE anyway.

    Comment

    • nitinmukesh123
      New Member
      • May 2007
      • 2

      #3
      thanks a lot for your reply...
      It saved my time.

      Comment

      • acoder
        Recognized Expert MVP
        • Nov 2006
        • 16032

        #4
        No problem, you're welcome.

        Comment

        Working...