<html> <body> <iframe id="myFrame" src="http://www.java2java.com" width="300" frameborder="no" framespacing="5"> </iframe> <br> <button onclick="alert(document.all.myFrame.frameBorder);">Frame Border</button> </body> </html>