| | |
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 ajaxexample ajaxjspservlets array browser bug captchaformproblem cart checkbox child class close codes createrange() css cursor date debugger decimal dependent design disablefirebug dom dropdown editor element embed engine enter error events explorer ext file firefox focus form forms frameworks getselection google gxt hiddenvalue highlightedword hint html ie7 ie8 iframe images index internet java javascript javascripthelp2020 jquery jsf jsfile jsp jump libcurl listbox maps masterpage math media menu mp4 object onmouseoutdivproblem onmouseover onreadystatechange parent paypal pdf php position post problem programming progressbar prototype redirect runtime safari scale scriptlets scroll search security shopping size software toggle unicode w3c web wysiwyg \n






