Home > Ajax > JavaScript: Access Iframe

JavaScript: Access Iframe

February 20th, 2009 Leave a comment Go to comments

t = window.frames['iframe'].document.getElementById('someID').innerHTML = "karlos";

CODE:
  1. $('#iframe').load( function(){
  2.           //$(this.contentDocument).find('body').find("#mojDiv").click(function(){
  3.               $(this.contentDocument).find('body').find("#hidden").attr("value", "test");
  4.           //});
  5.     });

Categories: Ajax Tags:
  1. No comments yet.
  1. No trackbacks yet.

0 pages viewed, 0 today
0 visits, 0 today
FireStats icon Powered by FireStats