<HEAD><SCRIPT>...</SCRIPT></HEAD>
|
<BODY>
|
Various actions that load a new URL into page
|
</BODY>
|
will result in the loss of all JavaScript methods and properties!
|
This can be avoided by using dummy frames:
|
<HEAD><SCRIPT>...</SCRIPT></HEAD>
|
<FRAMESET ROWS="1,*">
|
<FRAME NAME="DUMMY">
|
<FRAME NAME="ActualFrame"
-
SRC="Thiscontainsoldbodyhtml.html">
|
</FRAMESET>
|
Now use <a href="URL" target="ActualFrame"> so that reloading will NOT destroy your JavaScript!
|
Note we defined a dummy frame above ActualFrame that occupies one pixel (could use zero!). The * notation tells Netscape to assign the remaining rows to the second frame
|