Windows Develop Bookmark and Share   
 index > Windows Forms General > javascript
 

javascript

Group,

any particular reason why this wil not work.

<script language="javascript">

document.write "<br /><br />Redirecting";

for(i=0;i<5000;i++){

if(i % 1000==0);

document.write ".";

}

</script>

Please help.

RoninB  Thursday, April 05, 2007 9:51 PM

I'm not sure why you're posting a JavaScript question here, but try this instead:

Code Snippet

<html>
<head>
<script type="text/javascript">
function load()
{
document.write("<br /><br />Redirecting");

for(i=0;i<5000;i++)
{

if(i % 1000==0)
{

document.write(".");
}
}
}
</script>
</head>

<body onload="load()">
</body>

</html>

kryzchek  Thursday, April 05, 2007 10:45 PM

I'm not sure why you're posting a JavaScript question here, but try this instead:

Code Snippet

<html>
<head>
<script type="text/javascript">
function load()
{
document.write("<br /><br />Redirecting");

for(i=0;i<5000;i++)
{

if(i % 1000==0)
{

document.write(".");
}
}
}
</script>
</head>

<body onload="load()">
</body>

</html>

kryzchek  Thursday, April 05, 2007 10:45 PM

You can use google to search for other answers

Custom Search

More Threads

• Hide / unhide part of the main form
• Application not responding when breakpoint exists
• app.config - turn off machine.config inheritance?
• Protecting methods from being resued after distribution
• populate a datagrid
• cannot change page size created in printer propoerty
• Draw lines over custom controls
• Running a nested message loop
• TableLayoutPanel for .NET 2003
• PropertyGrid Key events not firing