Question:
how to hide or remove the close Button in HTML?
senthil v
2008-06-19 02:27:06 UTC
dear friends,
how to remove or hide the close button in HTML forms, through javascript. i am opening a new window thorough javascript using window.open(). can u plsw give me the answer as soon as possible.thanks in advance.

by
senthil
Four answers:
AnswerFiend
2008-06-19 02:38:37 UTC
If you are talking about the close (x) button on the window frame itself then the answer is you can't. It's impossible there is no way in _any_ language to hide that. It's controlled by the operating system.



If you want a popup on which you have complete control you'll want to look into DHTML popups.
2008-06-19 02:40:52 UTC
It is not possible to do this in Javascript. However, you could handle the close event of the form.

You could also set the titlebar parameter in window.open() to 0.
TheMadProfessor
2008-06-19 09:04:13 UTC
As others have mentioned, you can't gain control of the close control of the window itself. For control of hide/display or greying of a close button, you're probably best going with Ajax to dynamically maintain the button properties as needed.
Chowdary
2008-06-19 02:35:35 UTC
Edit with Dreamweaver


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...