jquery - How to run a javascript function onload? -


http://8animetv.co.vu/ problem when open post link on own loads ugly site. site loads video posts right in list , when click on video title loads post iframe left (where picture is).

<iframe name="ifrm" id="ifrm" src="somepicture.png"></iframe> <ul>     <li><a href="postlink" target="ifrm">video 1</a></li> </ul> 

the post site , main site on same html file. need function whenever window.location.href = homepage/post/something instead go http://8animetv.co.vu/ load homepage/post/something iframe. possible?

just bind function onload event. window.onload=function(){}; load site iframe want use src property of iframe object. ref: http://www.w3schools.com/jsref/dom_obj_frame.asp


Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -