PDA

View Full Version : JavaScript problem


JavaBytch
03-06-2003, 05:50 AM
:confused: I am trying to put the Random Motivational Script from JavaScriptKit.com and the file I need to dowload ,motivatequote.js, keeps saying Document is undefined JSscript runtime error .

What could be the problem ?

An example of the script in action would be at http://www.wegivewings.com
at the top of the page .

JavaBytch

joh6nn
03-06-2003, 06:27 AM
you mean when you double click on file, after you've downloaded it? if so, this is because Windows is capable of running javascript, the way it would run a program. however, because this javascipt has been written for use in a webpage, Windows doesn't know what to do with it; that's why you get the error. nothing's wrong, you just need to open the file in notepad, or another text editor.

if that's not what you meant, tnen you need to explain your problem more clearly.