This content has been marked as final. Show 2 replies
'this.document' is a predefined variable that defines the URL source of the current page. Your name either conflicts with that or is getting confused with it somewhere. Use another name.
EJP wrote:If you are referring to the predefined variable that provides access to the Document Object Model then I believe you are mistaken, that is 'window.document' or just 'document'.
'this.document' is a predefined variable that defines the URL source of the current page.
EJP wrote:The 'document' variable is a parent of the window object e.g. 'window.document' but my variable has the context of 'this'. That means 'this.document.URL' returns 'undefined' instead of the URL for the current page.
Your name either conflicts with that or is getting confused with it somewhere.
For some strange reason it only affects the Applet when 'this.Document' is used. Why would Java be affected in this way in the first instance? Even setting the 'scriptable' parameter to false doesn’t help:
<param name="scriptable" value="false">
Use another name.