Code: Select all
<html>
<head>
<meta/>
<title></title>
<script type="javascript">
function toggle()
{
// show or hide div depending on what display is set to
}
</script>
<style>
@import blah.css
</style>
</head>
<body>
<a onclick="javascript: toggle()">toggle div</a>
<div id="toggleme">blah blah blah</div>
</body>
</html>Firefox says that the function doesn't exist.
I tried changing the function name, placing it in different parts of the page, and copying functions and calls that I know work from other pages.
Nothing works, same two errors, every time.
I don't know what is wrong.