I have a main.html
, inside it is <ifram id='if' name='if'>
, which loads another site (this loads a site not in my domain, like Facebook).
The site which is loaded in the iframe
has <form name='form2' id='form2'>
, and in it there's <input type='text' name='tb' id='tb'>
Also in main.html
, I have a button and I was wondering if we could place some Javascript on the button so that when we click it, the text in textbox named tb
changes to say 'az'.
How can we do this?