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

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -