I have a problem. Basically I want to set the colour of the page via code, so I ran the body tag serverside but I cant run a javascript function onload, because its clientside. Any ideas?
Html:
<body id="body" runat="server" onload="updateClock(); setInterval('updateClock()', 1000 )">
[editline]11:37PM[/editline]
Also the error is:
Compiler Error Message: BC30456: 'updateClock' is not a member of 'ASP.default_aspx'.
Obviously you're using the wrong function.
I haven't used JS in a few years, though - I can't help, sorry :(
No its the right function. The error is caused because I am calling a clientside function in a serverside part of the page - the body lol.
Try to call it in the head, if, at all possible?
[QUOTE=Klownox;16248877]Try to call it in the head, if, at all possible?[/QUOTE]
I dont think you can and if you can, I dont think you can set an interval...
Sorry, you need to Log In to post a reply to this thread.