Javascript Behaviours

Use Javascripts to enhance a webpage.

The following link opens an example page in a separate window with a specific size and position.

This link uses a method by placing code in the page that gets opened.

There is no java script attached to this page, only the page that it opens.

The link appears in the HTML as the following:

Follow the link and view the source code.

The following code was inserted into the <head> tag of the linked webpage.

<script type="text/javascript">
<!--
self.resizeTo(500,500);
self.moveTo(400,400);
self.scrollbars(false);
//-->
</script>