www.webdeveloper.com
Results 1 to 5 of 5

Thread: How to combine the code?

  1. #1
    Join Date
    Mar 2003
    Posts
    432

    How to combine the code?

    Howdy~
    How do I combined the following code so I can make it work.

    Code:
    <body bgcolor="#CCCCCC" onload="changedate('return')" onLoad="loadPage();">
    Thanks
    The Devil

  2. #2
    Join Date
    Mar 2009
    Location
    Australia
    Posts
    17

    Just guessing...

    I believe that you want to run both JavaScript functions when the web page loads. Do this by using the following code:
    Code:
    <body bgcolor="#CCCCCC" onload="changedate('return');loadPage();">

  3. #3
    Join Date
    Mar 2003
    Posts
    432
    Howdy~
    That did not work for me. Any other ideas?

    Thanks
    The Devil

  4. #4
    Join Date
    Mar 2009
    Location
    Australia
    Posts
    17

    Post

    It may be a problem with your JavaScript functions.

    Also try:
    Code:
    <script type="text/JavaScript">
    window.onload = function() {
    	changedate('return');
    	loadPage();
    }
    </script>
    Add the code below your other JavaScript code.

  5. #5
    Join Date
    Jun 2005
    Location
    United Kingdom
    Posts
    1,043
    And, for the future, why not post javascript questions in the javascript section? You'd be more likely to get a good answer quickly.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles