Skip to main content
Inspiring
November 8, 2006
Question

flash change html bg color

  • November 8, 2006
  • 1 reply
  • 168 views
Okay I don't know much/anything about javascript, however I thought if javascript were disabled then you could not run javascript scripts. Therefore I wanted to test my actionscript that runs a javascript function with j.s. disabled to see what problems may occur. However all is still working fine. My j.s. is defo turned off, as when I try and log into hotmail I am told can't need to turn j.s. on.

steve.onRelease=function() {
getURL ("JavaScript:changeBgColor('#336600')");
}


Then in the html page:.....
<script language="JavaScript">
<!--
function changeBgColor(newBgColor) {
if (window.document && window.document.bgColor) {
document.bgColor = newBgColor;
}
}
-->
</script>


Any ideas why it is still working? Is it becuase I am only testing locallly?
This topic has been closed for replies.

1 reply

Inspiring
November 8, 2006
That is the answer. It doesn't work when not testing locally.