Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: double js

  1. #1
    Regular Coder
    Join Date
    Dec 2007
    Posts
    269
    Thanks
    28
    Thanked 0 Times in 0 Posts

    double js

    i have two js event for onLoad

    Code:
    <body onload="javascript:GetPos()">
    <body onload="javascript:runSlideShow()">
    if i use just one it runs but if i run all of them they do not run why ?

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    18,309
    Thanks
    203
    Thanked 2,563 Times in 2,541 Posts
    You will find the answer at

    http://www.javascriptkit.com/javatut...iplejava.shtml

    Solution:

    <body onload = "GetPos(); runSlideShow()">

    The javascript: is redundant.


  •  

    Posting Permissions

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