# VirtualMV/JavaScript/Extensions/Home

The extensions section contain an assorted JavaScript code that you may find useful

Some miscellaneous JS code is as follows:

### Using Frames for layout

One problem is that the frames "wrapper" page is used in the title. This can be fixed using a little JavaScript/

Add the following to each of the individual pages

<script type="text/javascript">
<!--
top.document.title = document.title;
// -->
</script>

### Changing a page in an iFrame

You can create an Page containing an iFrame then by clicking on a link change what is displayed in the iFrame.

<script type="text/javascript">
<!--
.. one day??
// -->
</script>

For now you can check out Chaterjee (2006)[1]

### References

1. Chaterjee, J. (2006) Working with IFRAME in JavaScript . Retrieved November 24, 2010 from http://www.devarticles.com/c/a/JavaScript/Working-with-IFRAME-in-JavaScript/
 VirtualMV/JavaScript/Extensions/Home. (2022). In WikiEducator/VirtualMV wiki. Retrieved August 12, 2022, from http:https://wikieducator.org/VirtualMV/JavaScript/Extensions/Home    (zotero)