 |
HTML Help Please Search for the answer to your question before asking it! Thanks.
|
| View previous topic :: View next topic |
| Author |
Message |
nicegurl
Joined: 18 Nov 2008
Posts: 1
|
| Posted: Tue Nov 18, 2008 10:02 pm Javascript function not displaying the correct output |
|
|
Hi All,
I have a javascript function included in the body of my html page, but when I called this function it shows that the function is not defined. I included this function inside the body of the html since I have my main page and when the user click the list it will redirect to the new page and that new page contain the javascript function. But it seems that the function is not readable.
Here's a sample:
data.html contains:
<html>
<head>
<script type="text/javascript" src="1.js"></script>
</head>
<body>
<div id="test" ><h2>Test Javascript</h2>
This is a test.
</div>
</body>
</html>
Then I have a javascript that change the value under the body that contains the javascript function.
Your help would be greatly appreciated.
Thanks. |
|
|
PayneLess Designs
Joined: 28 Feb 2007
Posts: 1409
Location: Biloxi, MS
|
| Posted: Wed Nov 19, 2008 8:04 pm |
|
|
| Need to post a link to problem web page or the code you are using as you do not have enough info about the JavaScript you are using for anyone to offer reasonable help. |
|
|
| |
|
|
|
Powered by phpBB Search Engine Indexer
Powered by phpBB 2.0.19 © 2001, 2002 phpBB Group
|