javascript - Button click in iFrame on Page Load -


I have an embedded IFrame (a map) and click the search button to click on the page load to display the search result. is required. Action does not change the URL when clicking the search button on the map.

Has anyone tried this action before anyone and is it possible? One ID = "search1" in the button and I have tried the script below. First there is a basic document ready and delay in another set (I was hoping that once the map is loading and the script will start searching ).

  & lt; Script & gt; $ (Document) .ready (function () {document.getElementById ("search1"). Click ();}); & Lt; / Script & gt; & Lt; Script & gt; $ ("Document") ready (function () {setTimeout (function () {$ ("# search1"). Trigger ('click');}, 20);}); & Lt; / Script & gt;  


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

javascript - amcharts makechart not working -

java - Algorithm negotiation fail SSH in Jenkins -