| | |
Frameset and setTimeout
Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Jul 2007
Posts: 13
Reputation:
Solved Threads: 0
The following code worked perfectly when I was using a normal window, but now that I have changed it to a frameset, it does not work. I have been reading as much as I can find on the subject and I realize that there are a different set of rules with "parent" etc. Please advise.
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
<SCRIPT language="JavaScript"> <!-- // reset timer var timer = window.setTimeout('closeWindow()',1800000); function resetTimer() { window.opener.resetTimer(); window.clearTimeout(timer); timer = window.setTimeout('closeWindow()',1800000); } function closeWindow() { window.close(); } //--> </SCRIPT> <BODY onFocus="resetTimer()">
Use top.your_frame_name or window.frames['your_frame_name'] to get the frame reference.(here top is the global window object).
Read this for more information about DOM.
Read this for more information about DOM.
Last edited by ~s.o.s~; Aug 8th, 2007 at 4:47 pm. Reason: Cleaned up a bit.
I don't accept change; I don't deserve to live.
> I want to close the frameset window. It is not a frame.
Do you know what you are saying? Frames are defined in the frameset tag and without frame tags, frameset is of no use. So how is that "its not a frame"?
Paste the working example and maybe then it would be easier for us to render help.
Do you know what you are saying? Frames are defined in the frameset tag and without frame tags, frameset is of no use. So how is that "its not a frame"?
Paste the working example and maybe then it would be easier for us to render help.
Last edited by ~s.o.s~; Aug 9th, 2007 at 12:37 pm.
I don't accept change; I don't deserve to live.
![]() |
Similar Threads
- Dynamically changing the frameset size (JSP)
- resizing a frameset (ASP.NET)
- Frameset,Showing loading..Please wait message (ASP.NET)
- setTimeout prevents resetting of image (JavaScript / DHTML / AJAX)
- Frameset (ASP.NET)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: Find location of highlighted text
- Next Thread: Javascript: Child windows talking to each other???
| Thread Tools | Search this Thread |
acid2 ajax ajaxcode ajaxexample ajaxhelp ajaxjspservlets animate automatically beta box browser captchaformproblem checkbox child close codes css debugger decimal dependent disablefirebug dom download editor element engine enter error events explorer ext file firefox form forms frameworks getselection google gwt gxt hiddenvalue highlightedword hint html htmlform ie7 ie8 iframe index internet java javascript javascripthelp2020 jawascriptruntimeerror jquery jsf jsfile jsp jump listbox maps masterpage math media menu microsoft mp4 object onmouseoutdivproblem onmouseover onreadystatechange parent paypal pdf php player position problem programming prototype redirect regex runtime safari scale scriptlets search security select size software sql textarea unicode w3c window windowofwords windowsxp wysiwyg \n






