Hi,
<script type="text/javascript">
document.getElementById('test').onclick = starte;
...
<body>
<p id='test'>
Warum funktioniert das nicht?
Weil es noch kein Element mit der ID test gibt zu dem Zeitpunkt, wo du versuchst darauf zuzugreifen.
MfG ChrisB
--
"The Internet: Technological marvel of marvels - but if you don't know *what* you're lookin' for on the Internet, it is nothing but a time-sucking vortex from hell."
"The Internet: Technological marvel of marvels - but if you don't know *what* you're lookin' for on the Internet, it is nothing but a time-sucking vortex from hell."