Skip to main content
jamiewisconsin
Inspiring
September 15, 2020
Question

Opening html file has javascript error: docelement has no properties

  • September 15, 2020
  • 2 replies
  • 351 views

This error message pops up when opening some of my html files in a Dreamweaver site: 

While executing onLoad, the following JavaScript error(s) occurred:

At line 75 of file "C:\Program Files\Adobe\Adobe Freamweaver 2020\Configuration\Commands\Date_beforeSave.htm":

docElement has no properties

 

Using Dreamweaver cc 2020 I navigated and opened the htm file.  The code at line 75 is:

    allText = docElement.outerHTML; // re-fetch

 I barely keep up with ccs code, but really don't know what's wrong with the java code here or is it something in the site html file that I am opening that is having a problem with this java code?  This file with line 75 seems to be doing something with checking save dates.

Attached a screen shot of several code lines before and after line 75.

This topic has been closed for replies.

2 replies

Nancy OShea
Community Expert
Community Expert
September 15, 2020

#1 JavaScript and Java are two completely different programming languages.

#2 If the JS error occurs with only certain files in certain sites, please validate code and fix reported errors.   Go to Window > Results > Validation.  Click the triangle and check document

 

Nancy O'Shea— Product User & Community Expert
BenPleysier
Community Expert
Community Expert
September 15, 2020
Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
jamiewisconsin
Inspiring
September 15, 2020

Ben,

 

Thank you.  I have deleted the file.  Hopefully this will take care of it.

 

Jamie