Window names cannot contain spaces in “window.open” scripts for IE

A customer’s course was crashing Internet Explorer when a popup window script executed. It turns out that the name of the new window contained a space. This didn’t bother Safari or Firefox, but Internet Explorer will not tolerate it:

This will crash Internet Explorer:

javascript:void(newWindow=window.open('movies/ChemoSynopsis/ChemoSynopsis.htm','The Synopsis',
'menubar=no,scrollbars=no,resizable=no,width=800,height=600,left=0,top=0'));
newWindow.focus();

This corrects the problem:

javascript:void(newWindow=window.open('movies/ChemoSynopsis/ChemoSynopsis.htm',
'TheSynopsis',
'menubar=no,scrollbars=no,resizable=no,width=800,height=600,left=0,top=0'));
newWindow.focus();

This is something to watch for when you are naming Captivate files, because their names – including any spaces – are used in the file names and scripts generated along with the HTML.