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
Post a Comment