Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript jquery click function

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #36429
    dynamyc
    Member

    I have this:

    $('#slidecaption, #slidecaption-grande').click(function() { //some code here...

    What I want to make is to open an external link like “www.google.com” after this function is clicked.
    How can I make this ?

    #95751
    dynamyc
    Member

    Thanks, but I want to add the link directly in the .click function.
    Is it possible ?

    #95819
    dynamyc
    Member

    On a div. The idea is that I want to put the link in the javascript function not in the html markup.

    #95837
    dynamyc
    Member

    Thank you!

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.