开发者

hide/disable close icon in javascript

I want t开发者_StackOverflow中文版o hide or disable close icon of pop up window . i have close button in form which will clse the the window using self.close().How i can do it in javac=script. i tried with toolbar=no in window.open, but it doesnt work. Is there any other method to do the same?


You can't do that via Javascript because the close button is a component from the user's operating system. (Javascript can't tell the OS how to behave, it only can work with the browser.)


You cannot disable the close button of a browser window, even if it's a popup. Imagine advertisements that couldn't close. It just has too much potential to be abused.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜