Eugenio Segala Eugenio Segala - 2 years ago 65
Javascript Question

Click link after click another link

There is a way to simulate a click on a link after having clicked another?

I have made this script:

$(".uno").click(function() {


When I click on "one" want "two" open the page as indicated.
My script does not work, and I do not understand why.

Answer Source

Update your fiddle. Updated one

Made few changes given below:

1. Added target="blank" in link.
2. Added http:// before google's link.
3. Wrapped your code in document.ready.

and it's working now :)

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download