Code: Select all
function popOnLoad(url)
{
window.open(url, 'width=310, height=250');
return true;
}
window.onload = popOnLoad("http://www.dancepropaganda.com/musicplayer/<?php echo $blah; ?>/player.html");
'width=310, height=250' doesnt work, having the attributes in any combination, wrapped in a string, doesn't work. It doesn't pop in IE and the attributes aren't read in FF. FF says 'invalid behavior' in the javascript console.
I also tried something like:
Code: Select all
function popOnLoad(url)
{
window.open(url, width=310, height=250, attr=val);
return true;
}
window.onload = popOnLoad("http://www.dancepropaganda.com/musicplayer/<?php echo $blah; ?>/player.html");
I think it had the same affect as above or didn't work in either browser.
EDIT: I actually decided to not worry about it to hard and am going to use a floating div when I have a moment to hack it up. I really just want this job to be done. :-/