Forum Moderators: open
Let's say I have this:
<input ... onfocus="MyFocus()">
Do you think I should make two versions, like this:
<script>
document.write(the above string to make the input box)
</script>
<noscript>
<input ...(no JavaScript functions)>
</noscript>
When I turn off JavaScript in Firefox it just ignores the functions like onfocus() and still makes the control, but maybe it's different in other browsers?
Take care,
Cyrus
"Scripts that appear within a SCRIPT element are executed when the document is loaded. For user agents that cannot or will not handle scripts, authors _may_ include alternate content via the NOSCRIPT element."
So according to the spec it seems to be up to you.
It might be wise though to include the <noscript>, as in the example of the same spec:
<SCRIPT type="text/tcl">
...some Tcl script to insert data...
</SCRIPT>
<NOSCRIPT>
<P>Access the <A href="http://someplace.com/data">data.</A>
</NOSCRIPT>