Click to See Complete Forum and Search --> : How to combine the code?


Tasmanian Devil
03-12-2009, 08:23 PM
Howdy~
How do I combined the following code so I can make it work.

<body bgcolor="#CCCCCC" onload="changedate('return')" onLoad="loadPage();">

Thanks
The Devil

badnmad
03-13-2009, 01:44 AM
I believe that you want to run both JavaScript functions when the web page loads. Do this by using the following code:
<body bgcolor="#CCCCCC" onload="changedate('return');loadPage();">

Tasmanian Devil
04-02-2009, 08:11 PM
Howdy~
That did not work for me. Any other ideas?

Thanks
The Devil

badnmad
04-02-2009, 10:41 PM
It may be a problem with your JavaScript functions.

Also try:
<script type="text/JavaScript">
window.onload = function() {
changedate('return');
loadPage();
}
</script>

Add the code below your other JavaScript code.

kiwibrit
04-03-2009, 02:31 PM
And, for the future, why not post javascript questions in the javascript section? You'd be more likely to get a good answer quickly.