PDA

View Full Version : Open/Close Frames/Windows using javascript?


vkidv
09-06-2002, 08:38 PM
Can you close certain windows and frames using javascripts. ect the name of the frame or the title or name of the frame/window??

this'd be realy helpful to close a certain frame/window
you could stop adverts coming up :P
and can you open certain frames which were alreadt defubed by the framset - but javascript keep it close until you click link to open this cetrain frame

basically i would like to know how to OPEN/CLOSE a CERTAIN WINDOW/FRAME

regards
sam

martin_narg
09-07-2002, 12:10 AM
heh, gewd luck. It's one of those that technically it can be done, but requires a lot of scripting. changing the pages that frames contain is relatively easy, but finding a new window that has been opened is definately trickier.

I would certainly suggest that if u wish to create a "popup cleaner" that u use something like VB5/VB6 or delphi or c++ and bind ur program to the back of ur browser. or write a program that cleans out html pages for strings such as automatic "window.open" (the javascript that boots up new windows)

apols for the techie language, i hope it makes sense

m_n