\begin{Verbatim}[commandchars=\\\{\}]
  \PYG{p}{\PYGZlt{}}\PYG{n+nt}{form}\PYG{p}{\PYGZgt{}}
    \PYG{p}{\PYGZlt{}}\PYG{n+nt}{input} \PYG{n+na}{id}\PYG{o}{=}\PYG{l+s}{\PYGZdq{}b0\PYGZdq{}} \PYG{n+na}{type}\PYG{o}{=}\PYG{l+s}{\PYGZdq{}checkbox\PYGZdq{}} \PYG{n+na}{onChange}\PYG{o}{=}\PYG{l+s}{\PYGZdq{}conversion()\PYGZdq{}}\PYG{p}{\PYGZgt{}}
  \PYG{p}{\PYGZlt{}/}\PYG{n+nt}{form}\PYG{p}{\PYGZgt{}}
  \PYG{p}{\PYGZlt{}}\PYG{n+nt}{script}\PYG{p}{\PYGZgt{}}\PYG{k+kd}{function} \PYG{n+nx}{conversion}\PYG{p}{()} \PYG{p}{\PYGZob{}}
      \PYG{k+kd}{var} \PYG{n+nx}{s} \PYG{o}{=} \PYG{l+m+mf}{0}
      \PYG{k}{if} \PYG{p}{(}\PYG{n+nb}{document}\PYG{p}{.}\PYG{n+nx}{getElementById}\PYG{p}{(}\PYG{l+s+s2}{\PYGZdq{}b0\PYGZdq{}}\PYG{p}{).}\PYG{n+nx}{checked}\PYG{p}{)} \PYG{p}{\PYGZob{}} \PYG{n+nx}{s} \PYG{o}{=} \PYG{l+m+mf}{1} \PYG{p}{\PYGZcb{}}
      \PYG{n+nb}{document}\PYG{p}{.}\PYG{n+nx}{getElementById}\PYG{p}{(}\PYG{l+s+s2}{\PYGZdq{}valeur\PYGZdq{}}\PYG{p}{).}\PYG{n+nx}{innerHTML} \PYG{o}{=} \PYG{n+nx}{s}
    \PYG{p}{\PYGZcb{}}
  \PYG{p}{\PYGZlt{}/}\PYG{n+nt}{script}\PYG{p}{\PYGZgt{}}
  \PYG{p}{\PYGZlt{}}\PYG{n+nt}{p}\PYG{p}{\PYGZgt{}}Le nombre représenté en binaire ci\PYGZhy{}dessus est
    \PYG{p}{\PYGZlt{}}\PYG{n+nt}{code} \PYG{n+na}{id}\PYG{o}{=}\PYG{l+s}{\PYGZdq{}valeur\PYGZdq{}}\PYG{p}{\PYGZgt{}}0\PYG{p}{\PYGZlt{}/}\PYG{n+nt}{code}\PYG{p}{\PYGZgt{}}.
  \PYG{p}{\PYGZlt{}/}\PYG{n+nt}{p}\PYG{p}{\PYGZgt{}}
\end{Verbatim}
