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

Closing parents parent html file

 
Ranch Hand
Posts: 300
Eclipse IDE Oracle Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI i have 4 html files a.html,b.html,c.html,d.html. when i click a button in a.html a small window opens that loads b.html in it, wheni click a button in b.html.. the window with b.html gets closed and another window c.html opens... now when i click a button in c.html i want to close a.html which is still open and the master parent of all... and in place of a.html i want to open d.html...

Can anybody suggest me how do i access the parents parent window.. as here for c.html .. parent is b.html.. which needs to be closed.. and a.html is b.html's parent.
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can not close windows that are NOT opened up with JavaScript.

Eric
 
carina caoor
Ranch Hand
Posts: 300
Eclipse IDE Oracle Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All the windows are open using javscript.... like

var window1=window.open("a.html",'','')
 
Eric Pascarello
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

ruquia tabassum wrote:All the windows are open using javscript.... like

var window1=window.open("a.html",'','')



I believe the poster already knows that. Their description of their problem states they are opening windows.
 
carina caoor
Ranch Hand
Posts: 300
Eclipse IDE Oracle Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i did not get it.. i want to close the window a.html from c.html, which is parents parent of c.html.... can anybody suggest me.. how do i do this?
 
I'm all tasted up for a BLT! This tiny ad wants a monte cristo!
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic