Forum Moderators: phranque
What I thought I could do is have the link be to a page that spawns a popup then returns the browser to the original page (the page from which the link was cilcked; the result is two pages open, just like with target=_blank).
So I have two options for making the original page: meta refresh or javascript window.location. They both seem to work equally well, but, I'm wondering if there are some caveats to using one or the other. Also, any caveats on even doing this at all (going from one page to another then back)?
But the real question remains: why on earth would you not want to use
target="_blank"? I know you say it's not so important, but I can't see the point of reinventing the wheel (but badly).
Now if someone knows how to get rid of toolbars, etc., in a new window using target=_blank without javascript in the link, I'd love to hear it. However, I just read today on here that it's not possible.
By the way, what's wrong with meta-refresh and the page being indexed? Is that a filter thing because of cloakers? I think I read about that.
window.open to open the window with the required dimensions and scrollbars removed, etc., embed the player within that open window, and use return false; to disactivate the live link to the audio file which can remain for those with Javascript disabled. <a href="audio.mp3" onclick="yourFunction('audio.mp3,whatever');return false;"> Meta refresh is handled badly by search engines at the moment, and it won't really be appropriate in this situation anyway (you can't use it to resize windows).