can we programatically click on an a href tag using jquery? i have tried $('a#someid').click(); but this does not trigger anything.. although i am using $("a#someid").attr("href", "someurl") to set the href dynamically which works fine..是否有可能通过程序模拟点击<a href> tag using jquery?
Also i tried giving window.location = "someurl", but when this is done.. the IE browsers security comes into play and asks for me to download file. which i need to avoid. if the same "someurl" is given as an href to an A tag the url is loaded without any IE securities..
Any help is very much appreciated..
我从来没有遇到过使用window.location之前的IE安全警告。你使用的是什么版本的IE? – 2010-07-09 15:00:00