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
Cannot access Windows 2008 DFS links from Windows 2003
nmconnect
How do I set up VB.Net to use libcurl?
Canon iR 2200 set IP adrress
Installing SSL certifcate on exchange 2010
How can you search e-mail within Outlook 2010 and not use the index?
New Hire Workflow in WSS
Sun Certified Developer for Java Web Services 5 - Study guide/suggestions
MPP microsoft project plan. How can i open a file created in ver 2010 in MPP 2003 or 2007.
Convert PDF into Excel spreadsheet