Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to close parent window?  RSS feed

 
urvi patel
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • 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 ]
 
xu fufei
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66207
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • 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
 
L Goundalkar
Ranch Hand
Posts: 395
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
Hi
thanks for the reply... It's working..
but in window 98, i got the that message..
urvi
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!