Win a copy of Spark in Action this week in the Open Source Projects forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

window close(URGENT)

 
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hallo,
in my application i am opening a child window.and then from this child window i am closing the parent window,by opener.close
but this gives a comfirmation box for window closing.i want to remove that confirmation box.
also i want a form to submit on enter key.
can anybody guide me
thanks in advance
 
Ranch Hand
Posts: 2596
Android Firefox Browser Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's the default behaviour, you can not have opener.close without the confirmation box. As a rule, you can only close the window you have explicitly opened without the confirmation box.
As for enter, if you have a submit button in the form, hitting enter will submit the form, otherwise you have to trap onKeyPress for all the fields.
HTH,
- Manish
 
    Bookmark Topic Watch Topic
  • New Topic