Emm Posted June 21, 2007 Report Share Posted June 21, 2007 Почему в Firefox это не пашет?<script type="text/javascript">function Key_Up() {self.close();}document.onkeyup=Key_Up;</script> Link to comment Share on other sites More sharing options...
0 PacMan Posted June 21, 2007 Report Share Posted June 21, 2007 Событие отрабатывает нормальноdocument.onkeyup=function() {alert('killah!');} Link to comment Share on other sites More sharing options...
0 Emm Posted June 21, 2007 Author Report Share Posted June 21, 2007 Да, но как закрыть окно? Link to comment Share on other sites More sharing options...
0 Maslakoff Posted June 21, 2007 Report Share Posted June 21, 2007 window.close(); ? Link to comment Share on other sites More sharing options...
0 AKS Posted June 21, 2007 Report Share Posted June 21, 2007 EmmПрочтите описание метода close объекта window Link to comment Share on other sites More sharing options...
0 Maslakoff Posted June 21, 2007 Report Share Posted June 21, 2007 Link to comment Share on other sites More sharing options...
0 Emm Posted June 21, 2007 Author Report Share Posted June 21, 2007 Хмм.., то что Firefox не закроет окно, если оно не создано тем же скриптом? Link to comment Share on other sites More sharing options...
0 AKS Posted June 21, 2007 Report Share Posted June 21, 2007 ...Firefox не закроет окно, если оно не создано тем же скриптом?Ответить можно, цитируя описание метода:Этот метод ( (window || self).close ) можно вызывать для того, чтобы закрывать окна, созданные методом window.open... Link to comment Share on other sites More sharing options...
Question
Emm
Почему в Firefox это не пашет?
Link to comment
Share on other sites
7 answers to this question
Recommended Posts