Link to home
Start Free TrialLog in
Avatar of ziorrinfotech
ziorrinfotech

asked on

how can i set the src property of iframe using javascirpt

I have asp.net 1.1 web form and in that i am using Iframe
now i want to set src property of Iframe using javascript
so wht i want is when user clicks on a button then i want to call this javascript function which i will set src property of the page and then user can see the page in iframe
so how can i set the src property of iframe using javascirpt
Avatar of HuyBD
HuyBD
Flag of Viet Nam image

try

parent.nameofiframe.window.location.href="";

HuyBD;
Avatar of ziorrinfotech
ziorrinfotech

ASKER

hi HuyBD
it does not work
ASKER CERTIFIED SOLUTION
Avatar of third
third
Flag of Philippines image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Michel Plungjan
window.frames, third...
yes, you are right. why did I do that? ;-) getting rusty everytime I handle another language...