Load another page when iframe loads -


hey thx time!!.

i want add login page @ website. so, using iframe , centered show username,password , connect button. but, want page load iframe page when user click connect button inside iframe.

first, want them add username , password info. , click load, page reloads keeps info (i hope).

here code

<iframe id="iframe" scrolling="no"      src="http://sms.altasoft.gr/panel/index.asp?lang=el&disp_function=user_login&id=5e8a0f4b-063b-4a7a-81fe-99579af44baa">             <p>your browser not support iframes.</p> </iframe> 

if page loaded iframe uses cookies keep log in information, should work:

<script type="text/javascript">     window.onload = function(){         var iframe = document.getelementbyid("iframe");         iframe.onload = function(){             window.location = iframe.src;         };     } </script> 

Comments

Popular posts from this blog

wireshark - USB mapping with python -

c++ - nodejs socket.io closes connection before upgrading to websocket -

Deploying Qt Application on Android is really slow? -