View Full Version : relation .htm and .js

05-31-2011, 07:12 AM
my english is not enouh soryy for that.

i wanna ask you something.i have a document for example example.htm. i defined <SCRIPT SRC="example.js"></SCRIPT> in example.htm.User click button in example.htm, example.js works in following sentences.

function print(){
var theDOM = dw.getDocumentDOM();
var theDocEl = theDOM.documentElement;
theDocEl.innerHTML += 'dreamweaver';

window.close(); // close extension UI

when i write it, "dreamweaver" is writing in between <html>-</html> tags. i don't wanna do this. it should do when a user click any place (for example between <body>-</body> ) function should write this place.

<bod(user click)y>
screen write


how can i do this

05-31-2011, 09:52 PM
I have a vague idea of what you are trying to do but as written don't quite understand the problem. Suggestion:
Type up your question in detail in your own language and then use google translate to turn it into English. Mistakes or not, with enough detail we'll understand it much better.