I've been attempting for a few weeks to get any type of Javascript to run from within the Button/Execute Javascript/Script_Window. Nothing seems to work.
In my course I am trying to use buttons as links to html files related to: Outline, Objectives, Acronyms, Links. each file is an html file. I would like these to be open in a new window that is resized to 400x600 with no toolbars, no status and with scrollbars. The code I'm attempting is below. However, I have even attempted to perform a simple: alert(); function which also does not work. I have uploaded to my LMS to see if that worked there, no good. Is there a problem with my installation? Any help and ideas appreciated.
<script language="JavaScript">
function openNewWindow() {
popupWin = window.open('objectives.html','open_window',scrollbars=yes, resizable=yes,width=400, height=600')
}
</script>
javascript:openNewWindow();