javascript - Pointing to div of other page -


i have 2 html pages (say 1.html , 2.html) want display in 2 different frames. 1.html contains table rows. each row contains details have stored in 2.html using div each row. want hide these div's nothing should displayed in 2.html. when select row 1.html, respective details (div) in 2.html should displayed.

any thoughts.

here's guideline:

you can address window.parent of iframe , trigger functions in it. functions can address child iframe.

for instance:

right frame javascript:

window.parent.changeleftiframe(); 

parent javascript:

function changeleftiframe() {      document.getelementbyid("leftframe").change(); } 

left frame javascript:

function change() {     document.getelementbyid("leftframe").style = "background-color: red"; } 

and there go, can manipulate 1 iframe one.


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -