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
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
Comment