OK this JS function works in a seperate file:
function makenum() {
Diver=document.getElementById('mydiv')
Diver.innerHTML=""
for (i = 0; i <= 10; i++)
{
no=Math.random()
no=no*i
Diver.innerHTML = Diver.innerHTML+Math.round(no)
}
}
But when i try to put it in another document, IE fails and doesn't want to display the page!
I've attached the working file...
[Edit]Played with it, solved the problem[/Edit]


Reply With Quote