Wells-it.com - Web Hosting

dhtml in .js??

You are viewing this site as a guest. Join our community to get your questions answered and share knowledge. Active members may advertise and ask for a website critique.

They have: 164 posts

Joined: Nov 2001

can dhtml scripts save as .js??

i wanted to add my dhtml scripts in a file saved as .js, but it's not working..

Suzanne's picture

She has: 5,512 posts

Joined: Feb 2000

depends on the dhtml -- if it needs to be on the page to work, then no. (document.write stuff).

you can make a whole bunch of .js files, though, and that should work, placing them where needed.

dk01's picture

He has: 517 posts

Joined: Mar 2002

Well if the document.write is in a function then it should be ok.
As long as the function is called inside the page from another script tag and not from an event.
-dk