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