Bonjour,
Je voudrais savoir s'il est possible d'accéder à une subroutine définie dans le document à partir d'une iframe. Exemple :
Fichier : index.htmlFichier : frame.html
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12 <html> <head>... <script language="vbscript" type="text/vbscript"> Sub hello MsgBox "hello" End Sub </script> </head> <body>... <iframe src="frame.html"></iframe> </body> </html>
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12 <html> <head>...</head> <body>... <a onclick="vbscript:appel à hello"> appel à la subroutine hello de la fenetre principal </a> // au alors si en vbscript c'est pas possible : <a onclick="javascript:appel à hello"> appel à la subroutine hello de la fenetre principal </a> </body> </html>
Partager