Forum de discussion
Forum « Programmation Javascript » (archives)
je ne trouve pas la solution
Envoyé: 26 janvier 2005, 13h33 par ichnad
<HEAD>
<SCRIPT language=JavaScript>
function ouvrir() {
if (document.form1.radiobutton[0].checked == true)
{
window.location.href= "http://www.yahoo.com";
}
else {
window.location.href= "http://www.google.com";
}
{
window.location.href= "http://www.voila.fr";
}
{
window.location.href= "http://www.tiscali.fr";
}
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</SCRIPT>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#800080">
<TABLE cellSpacing=0 cellPadding=0 width=125
border=0>
<FORM name=form1>
<TBODY>
<TR>
<TD><B><FONT
face="Arial, Verdana, Helv" size=2><INPUT
type=radio CHECKED value=radiobutton1
name=radiobutton>Yahoo </FONT></B></TD></TR>
<TR>
<TD colSpan=3><B><FONT
face="Arial, Verdana, Helv" size=2><INPUT
type=radio value=radiobutton2 name=radiobutton>
Google </FONT></B></TD></TR>
<TR>
<TD colSpan=3><B><FONT
face="Arial, Verdana, Helv" size=2><INPUT
type=radio value=radiobutton3 name=radiobutton>
Voila </FONT></B></TD></TR>
<TR>
<TD colSpan=3><B><FONT
face="Arial, Verdana, Helv" size=2><INPUT
type=radio value=radiobutton4 name=radiobutton>
Tiscali </FONT></B></TD>
<TD vAlign=bottom><A href="javascript:ouvrir();"
target=_top><IMG height=18
src="http://www.ifrance.com/ichnad/test/ok_orange.gif" width=18
border=no></A></TD></TR></FORM></TBODY></TABLE>
</BODY>
</HTML>
Réponses
|