Andrew1985
Programmer
How can I get this to work? I want to create a function that counts down from two sections, executes a function and cuts itself off.
It seems that anywhere i put setInterval inside these functions it keeps daying that the function doesn't exist.
So basically what i'm asking is how can i get the below script to work?
Thanks!
<script type="text/javascript">
function init ()
{
function alertHello ()
{
alert('hello');
}
alertHello();
}
window.onload = init;
</script>
It seems that anywhere i put setInterval inside these functions it keeps daying that the function doesn't exist.
So basically what i'm asking is how can i get the below script to work?
Thanks!
<script type="text/javascript">
function init ()
{
function alertHello ()
{
alert('hello');
}
alertHello();
}
window.onload = init;
</script>