Ok, lets say I have page.php. If i’m currently viewing page.php and I click this link:
<a href="#?call=friend.request&user_id=10&width=420&height=250">Link</a>
The javascript box will pop up. Success!
However, if I’m on a different page, and I link to
<a href="http://domain.com/page.php#?call=friend.request&user_id=10&width=420&height=250">Link</a>
The javascript box will not pop up when the page loads.
Any ideas?
I can’t edit or find the javascript code that executes the said function, unfortunately.
That’s not the idea of JS, so basically what you have to do is a check in the
window.onloadevent, so you can check thewindow.locationto search for the # string and then parse whatever you want.As I said, that’s not the general idea of JS, so it turn out to be a little messy.