I was making an application in asp .net mostly with help from the asp.net forums and i am using javascript to open a popup in my gridview. I wanted to open a window with the title "MAIN TEST" how do i set the value of the title name ? i am guessing this is the syntax : window.name="main test"; but it doesnt seem to work, here is the script, any help would be appreciated.
-
<script language="JavaScript">
-
function openNewWindow(URL)
-
{
-
day = new Date();
-
id = day.getTime();
-
window.name="main test";
-
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=no,scrollbars=no,location=no,statusbar=no,menubar=no,resizable=yes,width=500,height=600');");
-
}
-
</script>
-
Thanks and regards in advance.