javascript - Button click in iFrame on Page Load -
i have embedded iframe (a map) , need search button clicked on page load display search results. when clicking search button on map action not alter url.
has tried action before , possible? button has id="search1" , scripts have tried below. first basic doc ready , sec sets delay (i hoping 1 time map loads script fire , initiate search).
<script> $(document).ready(function () { document.getelementbyid("search1").click(); }); </script> <script> $("document").ready(function() { settimeout(function() { $("#search1").trigger('click'); },20); }); </script>
javascript jquery
No comments:
Post a Comment