Hi,
Its seems v.silly question but I cant close Firefox window usingcommand, anyone have a solution for this please advise...javascript:window.close();
thanks in advance
regards
Kazmi~
Hi,
Its seems v.silly question but I cant close Firefox window usingcommand, anyone have a solution for this please advise...javascript:window.close();
thanks in advance
regards
Kazmi~
Either one of these should work:
Code:<button onClick="window.close()">Close Window</button>Code:<a href="javascript:window.close()">Close Window</button>
Jeremy | jfein.net
Thx Nile but all these commands are working only with IE but not with Firefox. I've tried all these
but no luck........1- <a href="javascript:self.close();">Close </a>
2- <a href="javascript:window.close();">Close </a>
It must be your settings, make a page(html) and put this in:
Tell me the output.Code:<script> alert('Javascript is enabled'); </script> <noscript>Javascript is disabled</noscript>
Jeremy | jfein.net
Lol strange..... Javascript is enabled as well nothing wrong with browser as its newly downloaded and being busy on lots on testing and development and all function perfect.....let me search as well......... thx for your time, did you test this on your firefox ?
Yup same version, i even upload the script to test, cause i feel like it might be cause im local (although thats sounds stupid) ......
Hmm, try downloading it again, although I don't think it will work, but if you contact Mozilla, they'll probably tell you the same thing. So reinstall it, if it still doesn't work contact them.
Jeremy | jfein.net
No, there's no problem in FF, the problem is in Javascript itself
In FF, window.close() will never close, not unless you opened that window through window.open method
For further reading:
http://developer.mozilla.org/en/docs/DOM:window.close
Hope that helps![]()
Learn how to code at 02geek
The more you learn, the more you'll realize there's much more to learn
Ray.ph!
Bookmarks