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
Windows 2008 32bit to 2008 64 bit R2 upgrade
Having connection problems between two Windows servers.
Vmware standalone convertor error
Drop Down List
What SAN cert Exchange 2010 for UM, OA?
How to configure Stuck In active in GNS3
Rogue disc drive in server 2008 cluster
Combo Box - displays Number instead of text
Anyone know of a 1U rack mountable server/pc that has an HDMI video capapbility?
Multicast session fails to open on secondary site server.