I get this error! [ 'return' statement outside of function ]

后端 未结 4 993
北荒
北荒 2020-12-31 16:28

I was creating a form validator for a client and ran into this weird error only in Internet Explorer (Explorer) 7/8....

\'return\' outside of fu

4条回答
  •  温柔的废话
    2020-12-31 17:09

    Sometimes, when you're writing back end systems where the user is expected to have JavaScript enabled in order to use the system, I feel it's fine to use javascript: href tags, since use of the system requires JavaScript anyway.

    In this case, there is nothing wrong with using href="javascript:", is there?

提交回复
热议问题