path() is not a function?
Posted: Mon Mar 24, 2008 7:22 am
It looks like any other function I've written, what am I missing here?
* The semi-colon is being output as an entity in my preview of the post.
Code: Select all
<script type="text/javascript">var path = 'http://example.com/123';function path() {alert (path);}</script>Code: Select all
<a href="javascript: path();">alert</a>