receiveArguments(): set the title
Adobe Dreamweaver invokes the receiveArguments() function, shown in the following example, when the user enters a value in the Title text box and presses the Enter key or moves the focus away from the control.
The function is as follows:
function receiveArguments(newTitle){ var dom = dw.getDocumentDOM(); if (dom) dom.setTitle(newTitle);}Adobe Dreamweaver passes newTitle, which is the value that the user enters, to the receiveArguments() function. The receiveArguments() function first checks to see whether a current DOM exists. If it does, the receiveArguments() function sets the new document title by passing newTitle to the dom.setTitle() function.