Microsoft
Software
Hardware
Network
Question : Javascript function in external js file does not execute
I have a simple js function
<head>
...
<script type="text/javascript" language="javascript">
function ol5()
{
return overlib('Popups present ancillary information.');
}
</script>
...
</head>
that executes correctly when embedded in the <head> section of a page, but that does not execute when contained in an external js file:
<head>
...
<script type="text/javascript" src="ol_functions.js"></sc
ript>
...
</head>
where the external file ol_functions.js, which resides in the same folder as the html page, contains exactly
function ol5()
{
return overlib('Popups present ancillary information.');
}
Any suggestions would be appreciated.
Answer : Javascript function in external js file does not execute
Try this:
<script type="text/javascript" src="./ol_functions.js"></sc
ript>
Random Solutions
Turn off the UAC
safari for 10.4
Terminal Server 2008 configure Access 2007 to enable all macros for all users?
yum install 7 Zip
Web Service limits
When the same MS Word 2007 Application runs on different machines, Forms on one machine may have darker shades of gray than on another. Why?
Capturing handwriting
Webassist Dynamic Drop Down
How to deny write to the desktop for users?
SQL Server instance just disappeared