There are now quite a number of programming codes that are used in designing and developing internet sites on the world wide web, and this maybe due to the continuous development of
digital information technology itself. But, JavaScript remains to be the top choice in providing additional functionality and interactivity to the functions and features of most internet sites. Since JavaScript requires knowledge on the most widely used web development tools and programming languages, using this programming language would result in an internet site that is accessible, usable, interactive, and virtually customizable.
One thing that JavaScript has a substantial effect on are the frames that you find on the pages of most, if not all, sites posted on the internet. With this, the problems that most web designers and publishers have regarding
page frames are now given a formidable solution. That is, for the frames of a page on an internet site not to confuse itself with other frames either on the site or on other sites. You see, the frames that are often accessed by page viewers often open in other frames found within the internet site, if not on other sites! With the codes below, this situation would be prevented from happening. So, let functional dissemination of the information found on the frames of your internet site begin without confusing the viewer! Well, only if you understand what I mean by the contents on this post, as well as for the codes below!
< - start of code >
<SCRIPT LANGUAGE=JAVASCRIPT TYPE="TEXT/JAVASCRIPT">
passpage = document.URL
if (top.location == self.location)
top.location.href="master.html?" + passpage
</script>
< - end of sample >
Just remember to create a page to be saved as an HTML document with master for its filename. Then, insert the second set of codes below between the head tags while leaving the contents contained by the body tags empty. After doing so, you're all set then!
< - start of code - >
<SCRIPT LANGUAGE=JAVASCRIPT TYPE="TEXT/JAVASCRIPT">
origURL = parent.document.URL
contentURL = origURL.substring(origURL.indexOf('?')+1, origURL.length)
document.write('<frameset cols="20%,80%"><frame src="index.htm" name="nav"><frame src="' + contentURL + '" name="content"><\/frameset>'
</script>
< - end of sample - >