|
sorry sorry, my mistake. this goes inside the <head> section of the html document.
<script type="text/javascript">
// <![CDATA[
function openclose(url,target,properties) {
opener = top;
window.open(url,target,properties);
self.close();
}
// ]]>
</script>
then, to use this.. you can have something like:
<a href="lala.html" onclick="openclose("something.html","_blank","");">click here</a>
|