在IE下,点击超链接之后不出声音,是怎么整出来的呀?就像firefox
下面的还出动静呢?前辈帮忙看看,哪里出问题了?<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Insert title here</title>
</head>
<body>
<a href="javascript:void(0);" id="aa">aaaa</a><script type="text/javascript">
var aa = document.getElementById("aa");
aa.onclick = function() {
//location.href = "http://www.baidu.com/";
this.href = "http://www.baidu.com/";
//this.click();
}
</script>
</body>
</html>
下面的还出动静呢?前辈帮忙看看,哪里出问题了?<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Insert title here</title>
</head>
<body>
<a href="javascript:void(0);" id="aa">aaaa</a><script type="text/javascript">
var aa = document.getElementById("aa");
aa.onclick = function() {
//location.href = "http://www.baidu.com/";
this.href = "http://www.baidu.com/";
//this.click();
}
</script>
</body>
</html>
解决方案 »
- 如何在IE8的选项卡之间进行焦点切换
- EXT3中EditorGridPanel,TreePanel,TriggerField 的超级BUG,高手请入
- AJAX找不到responseText中的URL?
- ext talbe布局 中item 项如何将单元格内的文字居中啊?
- 在静态的html页面中去调用一js文件,调用完不会刷新界面
- D-tree
- 帮个忙!看看那位大虾能把这个BT站点的文章保存下来!
- textarea中光标在一个随意位置,javascript有什么办法能在光标后面加上自己定义的字符
- 有个input text框,需要用checkbox来控制其有效性!
- 怎么样用javascript发信件,但不要启动outlook或其它软件,急
- IE模拟DOMContentLoaded
- 求实现打印的一个例子(可运行完整的代码)
怎么能不出声音呢?
在ie7下点超链接就有声音,不过可以处理下,就没声儿了.
我下面的代码不行呢?京东商城、csdn 点超链接都不出声音
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Insert title here</title>
</head>
<body>
<a href="javascript:void(0);" id="aa">aaaa</a><script type="text/javascript">
var aa = document.getElementById("aa");
aa.onclick = function() {
//location.href = "http://www.baidu.com/";
this.href = "http://www.baidu.com/";
//this.click();
}
</script>
</body>
</html>