Bonjour,

Voici mon problème, j'ai une page qui contient trois frames. Je veux passer au frame du milieu un chemin vers une page html Ex: course/documents/page0004.html.

Puisque cette page peut varier d'une ouverture à une autre j'essais de faire une function dans la section <script> et par la suite d'en faire l'appel dans la balise <Body>. Rien à faire sa ne fonctionne pas.

Voici une partie du code de ma page

code:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
function StartPage()
{
window.frames[1].location.href="course/documents/page0004.html"; 
}

Code html : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
</SCRIPT>
</HEAD>
<Body onload="StartPage();">
<FRAMESET COLS="*,640,*" BORDER=0 FRAMEBORDER=0>
<FRAME FRAMEBORDER=0 SCROLLING="NO" Src="course/documents/border.html" NORESIZE>
<FRAMESET ROWS="40,390,60,*" BORDER=0 FRAMEBORDER=0>
<FRAME NAME="TP2TOP" FRAMEBORDER=0 SCROLLING="NO" Src="" NORESIZE>
<FRAME NAME="TP2CLNT" FRAMEBORDER=0 SCROLLING="YES" NORESIZE>
<FRAME NAME="TP2BAR" FRAMEBORDER=0 SCROLLING="NO" Src="course/documents/ctrl.html" NORESIZE>
<FRAME FRAMEBORDER=0 SCROLLING="NO" Src="course/documents/border.html" NORESIZE>
</FRAMESET>
<FRAME FRAMEBORDER=0 SCROLLING="NO" Src="course/documents/border.html" NORESIZE>
</FRAMESET>
</HTML>