Other ways to insert JavaScript here
- Press the "Edit" button
- Press the "More" button
- Press the "Source" button
- make a script tag
- put your Javascript in it
If you want to use the page re-writer or otherwise effect other pages you will have to escape the scope of the page:
<script>
function temp(){
if(!top.noodle.custom){
top.noodle.custom=function(){
var doc=top.noodle.mainWindow().document;
var url=doc.location.href;
//your code here
};
}
}
top.noodle.core.evalString(temp.toString()+";temp();");
</script>