Link to home
Start Free TrialLog in
Avatar of deputycheek
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

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Kyle Hamilton
Kyle Hamilton
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of deputycheek
deputycheek

ASKER

What is it doing?
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