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

java - Intellij Synchronizing output directories .. -

git - Initial Commit: "fatal: could not create leading directories of ..." -