Frame Frame Object - Usage ---- In the most likely, each HTML file occupies a Window object, including the defined web page ("Frame web page"). The framework that is marked in the IE in the document is also a Window object, but the method "containing the web page" (displayed in HTML " ") The read HTML does not occupy a single Window object. Each framework is a child object (don't know if it should be called "attribute" should not be referenced, you can reference it: window.frames [x] window.frames ['FrameName'] Window.Framename ---- Use the framework to closely pay close attention to the global variables defined in your JavaScript and custom functions. They all have their own Window objects. To reference global variables or custom functions in other frameworks, you have to use "Window Objects. Frame Object [Frame Objects ...]. Global Variables or Custom Functions".
Cookie - Basic Knowledge ---- = ---- Each cookie has the date of failure, once the computer's clock passes the date of failure, this cookie will be deleted. We can't delete a cookie directly, but you can use the setting failure date to indirectly delete it indirectly. - Document.cookie ---- Content Format: Name = Kevin; email=kevin@kevin.com; Lastvisited = index.html Two cookies are separated from semicolons and spaces, so we can use cookiestring. The split (';') method gets an array of each cookie (first use VAR cookiestring = document.cookie). ---- Set a "name = rose" cookie, expired after 3 months. Var expires = new date (); expires.settime (expires.gettime () 3 * 30 * 24 * 60 * 60 * 1000); / * Three months x One month as a 30 day x day 24 hours x one hour 60 points x One minute 60 second x one second 1000 milliseconds * / Document.cookie = 'name = rose; expires =' expires.togmtstring (); ---- Delete the name = rose cookies just set. Var expires = new date (); expires.settime (expires.gettime () - 1); Document.cookie = 'name = rose; expires =' expires.togmtstring (); ---- Write a function, the function is Find the value specified for the cookie. Function getCookie (cookiename) {var cookiestring = document.cookie; var start = cookiestring.indexof (cookiename '='); // Plus the aliquot reason is to avoid / 有 / 有 / 有 有 有String. IF (start == -1) // can't find return null; start = cookiename.length 1; var end = cookiestring.indexof (';', start); if (end == -1) Return Unescape Cookiestring.substring (start); Return Unescape (cookiestring.substring (start, end);}