Hi guys. Need your help again. I need help into generating a click when a function is called. For example, assume the next link: <a href="#" id="spot">click me</a> <script> function gen() { generate a click to id spot } </script> I only need to know how to generate a click for lightbox script. Please help. or if you know how to call a function with parameters, instead of using this <a href="text.html" class="lbOn">About Lightbox</a> (will open in light box text.html , but i need to do it automaticly ) Thank you
If I understand you correctly, this should be very simple: function gen() { location="text.html"; } </script> When the function is executed, it will load text.html page. Is this what you needed?
@alexpr07 no . I need a function that simulate a real mouse left click to a specific ID of <a href. Thank's anyway
I don't understand "simulate a real mouse click". You have an anchor <a href="#" id="spot">BLAH</a> What exactly is supposed to happen and what is the user expected to do to make that happen? Are users supposed to be clicking on that anchor? Is the script supposed to know to take users to text.html if they click on an anchor with the id of "spot"?