How do i get and change an iframe src/content. <html> <head> <SCRIPT LANGUAGE="javascript"> function getname() { alert("your current location is : " + [COLOR="Red"]???????[/COLOR]); } function changename() { [COLOR="Red"]document.ifram1.src = "www.xyz.com";[/COLOR] alert("your current location is : " + [COLOR="Red"]???????[/COLOR]); } </SCRIPT> </head> <frameset ROWS="5%,*"> <input type="button" onclick="getname();" /> <input type="button" onclick="changename();" /> <iframe SRC="http://www.abc.com" NAME="frame1"> </frameset> </html> Code (markup):