Results 1 to 2 of 2

Thread: load page and javascript!!

  1. #1
    Join Date
    Oct 2006
    Posts
    60
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Lightbulb load page and javascript!!

    Hello again,

    i would like to ask if it is possible to call a page with an anchor tag and also run the javascript from that page..

    what i mean is that the new page that i load has some javascript in it, in which i want to pass some parameters..

    I hope u understand what i mean.

    Something like :
    Code:
    <a href="products.html  'javascript:doSomethingInProducts(01)'">product01</a

  2. #2
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    Instead of using the javascript: protocol, use the onclick event handler:
    Code:
    <a href="products.html" onclick="doSomethingInProducts(01);">product01</a
    - Mike

Bookmarks

Posting Permissions

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