I just can not figure a way to use location.href to act like you're clicking on a link. What I am trying to do is get the variables included, for example,
The regular link is like this and works fine:
<a href="images/someImage.jpg" title="My Image" rel="gb_page_center[249, 266]">Click Me</a>
I am trying to call a function using href (or some other method) to open the image with the other parameters just as if you were to click on the link.
I hope I am explaining this correctly.
Thanks for any help.
-UPDATE-
I finally found my solution here Displaying the Popup box generated by Greybox on page load(onLoad)
Thank you all for your suggestions.