Results 1 to 4 of 4
Thread: help with .js file
Feb 26, 2001, 12:02 #1
- Join Date
- Feb 2001
- 0 Post(s)
- 0 Thread(s)
Im trying to use a .js file to store text that will be displayed in a small window. I tried to do a test in a regular window but i keep getting an error saying that my external variable is undefined. what am i doing wrong.
Below are the two files.
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
var mytext = text;
<body bgcolor="#FFFFFF" text="#000000">
mytext.js (External .js file)
<!-- hide script from old browsers
var text ="this is the text that should be inserted into the window whenever This source file is called lets see if it works";
// end hiding script from old browsers -->
please can someone help.