• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

i am getting java script error

 
Anitha Kuchana
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i call a javascript function by using <a href onblur="javascript:first();"> i defined a javascript function .but i am getting function not defined error.please help me what cani do?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65216
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Firstly, please take the time to choose an appropriate forum for your posts. This forum is for questions on JSP, not JavaScript. For more information, please click this link ⇒ CarefullyChooseOneForum. This post has been moved to a more appropriate forum.

Secondly, lose the "javascript:" prefix. It's superfluous and unneeded.

Is the first() function defined elsewhere on the page? If so, show it to us.
 
Vigneswaran Marimuthu
Greenhorn
Posts: 24
Eclipse IDE Oracle Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Give us a little more information regarding your function declaration etc.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
function is not defined is saying exactly what your problem is. The function is not defined in the current scope of the page.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic