deputycheek
asked on
Javascript Error Help
I'm getting an error with this code, can you please tell me if you see anything wrong. The error is only in IE8. Chrome and FF work just fine.
// AUDIO:
$('#jplayer_music_link').click(function(){
window.open($(this).attr('for-lable'), "My Musics", "width=275,height=500");
}); // end of jplayer_music_link block
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Remove spaces from the second argument of the window.open i,e change
My Musics
to
My_Musics
OR
if it still does't work then make the second argument( "MY Music" to empty).
Note : In window.open function, Microsoft does not support a name as second argument. When you look at the official documentation page, you see that Microsoft only allows the following arguments, If using that argument at all:
_blank
_media
_parent
_search
_self
_top
My Musics
to
My_Musics
OR
if it still does't work then make the second argument( "MY Music" to empty).
Note : In window.open function, Microsoft does not support a name as second argument. When you look at the official documentation page, you see that Microsoft only allows the following arguments, If using that argument at all:
_blank
_media
_parent
_search
_self
_top
ASKER