218 Part III . Document Objects Reference Frames (Web hosting uk)

218 Part III . Document Objects Reference Frames The application of frames has become a religious issue among Web designers: some swear by them, while others swear at them. I believe there can be compelling reasons to use frames at times. For example, if you have a document that requires considerable scrolling to get through, you may want to maintain a static set of navigation controls visible at all times. By placing those controls be they links or image maps in a separate frame, you have made the controls available for immediate access, regardless of the scrolled condition of the main document. Creating frames The task of defining frames in a document remains the same whether or not you re using JavaScript. The simplest framesetting document consists of tags that are devoted to setting up the frameset, as follows: My Frameset The preceding HTML document, which the user never sees, defines the frameset for the entire browser window. Each frame must have a URL reference (specified by the SRC attribute) for a document to load into that frame. For scripting purposes, assigning a name to each frame with the NAMEattribute greatly simplifies scripting frame content. The frame object model Perhaps the key to successful frame scripting is understanding that the object model in the browser s memory at any given instant is determined by the HTML tags in the currently loaded documents. All canned object model graphics, such as Figure 16-1 in this book, do not reflect the precise object model for your document or document set. Window Document Figure 16-1: The simplest window document relationship
Please visit our professional web hosting services to find out about cheap and reliable webhost service that will surely answer all your demands.

Leave a Reply