• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

how to close parent window?

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
From Parent window, i am opening one new window without toolbar and menubar.. and now i want to close that parent window.
Please help.
urvi
[ June 09, 2003: Message edited by: urvi23 patel ]
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
try window.opener.close() plz
btw:you expression of question is vague,i think...

Originally posted by urvi23 patel:
With window.close() they will ask that "Are u want to close the window?" so it will not ask like that and window got closed automaticaly..
Please help.
urvi

 
urvi patel
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have already tried, window.opener.close() but my problem is that it ask for permission before closing the parent window and i don't want this permission to be asked.

so, how can i get that??
urvi
 
Sheriff
Posts: 67754
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can't.
Btw, the HTML/Javascript forum is here. Questions of this nature should be asked there.
hth,
bear
 
Ranch Hand
Posts: 395
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try this.
Its working in my application.
parentwindow = window.self;
parentwindow.opener = window.self;
parentwindow.close();
 
urvi patel
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
thanks for the reply... It's working..
but in window 98, i got the that message..
urvi
 
reply
    Bookmark Topic Watch Topic
  • New Topic