HI guys, i'm only a bigginer in java script and i'm looking for a code to proppose a button to click to close a window containing frames. So far all codes i've found work only on a window itself and not when within a frame :
<head>
<script language="JavaScript">
function myClose() {
opener = self;
self.close();
};
</script>
</head>
<body>
<form name="maForm" action="?" method="post">
<input type="button" name="b_close" value=http://www.webdeveloper.com/forum/archive/index.php/"Fermer" onClick="myClose();">
</form>
</body>
<head>
<script language="JavaScript">
function myClose() {
opener = self;
self.close();
};
</script>
</head>
<body>
<form name="maForm" action="?" method="post">
<input type="button" name="b_close" value=http://www.webdeveloper.com/forum/archive/index.php/"Fermer" onClick="myClose();">
</form>
</body>