Javascript onclick无法在IE中运行 [英] Javascript onclick not working in IE

查看:74
本文介绍了Javascript onclick无法在IE中运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个包含各种数字的select语句。单击其中一个选项后,您将被发送到将选项值放入会话并返回上一页的页面。当它返回到页面时,它应该写出一些< div>基于会话变量的标签。我不知道它的asp或IE,但无论它在我想要它的方式在firefox中工作。我正在使用的代码是:

I have a select statement with various numbers. Upon clicking on one of the options, you are sent to a page that puts the option value in a session and returns back to the previous page. When it gets back to the page it is supposed to write out a number of <div> tags based on the session variable. I don''t know if its asp or IE, but regardless it works in firefox the way I want it to. The code that I''m using is:

展开 | 选择 | Wrap | 行号

推荐答案


我有一个包含各种数字的select语句。单击其中一个选项后,您将被发送到将选项值放入会话并返回上一页的页面。当它返回到页面时,它应该写出一些< div>基于会话变量的标签。我不知道它的asp或IE,但无论它在我想要它的方式在firefox中工作。我正在使用的代码是:
I have a select statement with various numbers. Upon clicking on one of the options, you are sent to a page that puts the option value in a session and returns back to the previous page. When it gets back to the page it is supposed to write out a number of <div> tags based on the session variable. I don''t know if its asp or IE, but regardless it works in firefox the way I want it to. The code that I''m using is:
展开 | 选择 | Wrap | 行号


您也可以尝试使用onchange =""在选择框上。您可以使用[选择框对象]获取所选选项元素.selectedElement
You could also try using onchange="" on the select box. You can grab the selected option element with [select box object].selectedElement



try" window.location.href =''uploadNum的.asp upNum = 1 ''?; "
try "window.location.href=''uploadNum.asp?upNum=1''; "



已经尝试过了。仍然无法使用IE :(

Tried that already. Still fails to work with IE :(


这篇关于Javascript onclick无法在IE中运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆