I'm using this function to open a window in full screen mode and then to close it when its already in full screen.
function fullwin()
{
if (this.name!='fullscreen'){
window.open("central.asp","","fullscreen,scrollbars"
}
else
{
window.close(self)
}
}
The problem is that this code always do the "if", it never does the "else".
Of course there's a problem in this.name, but i don't know what's wrong cause iam newbie in Java Script. Could you help me?
function fullwin()
{
if (this.name!='fullscreen'){
window.open("central.asp","","fullscreen,scrollbars"

}
else
{
window.close(self)
}
}
The problem is that this code always do the "if", it never does the "else".
Of course there's a problem in this.name, but i don't know what's wrong cause iam newbie in Java Script. Could you help me?