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