+ Reply to Thread + Post New Thread
Results 1 to 4 of 4

Thread: Javascript Code To Call Facebook Add Friend OnClick Function

  1. #1
    Noobie
    Join Date
    Apr 2008
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Javascript Code To Call Facebook Add Friend OnClick Function

    Hi All,

    I am trying to make a page automatically click a button... basically here is the link:

    HTML Code:
    Add as Friend
    So there is no href, but there is an onclick bit.

    Does anyone know how I would call this onclick function automatically?

    Cheers all

  2. Shorten URL    SEO Services    Buy Xrumer

    Sponsored Links

  3. #2
    Noobie
    Join Date
    Apr 2008
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Maybe you should try to use "onload" instead of onclick

  4. #3
    Noobie
    Join Date
    Apr 2008
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    thanks for your reply - but that code above is code already in the facebook site.... so thats actually in the HTML. (I cant change it to onload)

    So what I want to do is simulate clicking the button... i.e. i want to invoke to onclick part.

  5. #4
    Noobie
    Join Date
    Apr 2008
    Posts
    92
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    That's only possible if you use the javascript code on the facebook page. You can't use from other page.
    Posted via Mobile Device

+ Reply to Thread

Tags for this Thread

Posting Permissions

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