javascript - How Do I scroll into view on button click and show iframe at the same time? -


i have button when clicked show iframe, want scroll iframe when iframe loads after button cliked don't have scroll view iframe instead me. i've tried approach

$(document).ready(function() {     $("#bpbutton").click(function() {     document.getelementbyid("iframe1").src="http://www.w3schools.com/jsref/prop_frame_src.asp";         $("#iframe1").slidedown();         document.getelementbyid("iframe1").scrollintoview();     }); }); 

but after click button shows iframe, have click again scroll view. can't seem both @ same time??


Comments

Popular posts from this blog

mysql - java.sql.SQLException Parameter index out of range (1 > number of parameters, which is 0) -

c - ALSA programming: how to stop immediately -