Why even use a pop-up? Create a table like this:
<table id='IdMyPopup' bgcolor='white' cellspacing='0' cellpadding='0' style='display:none; position:absolute; left:100px; top:100px; border:2px solid black;'><tr><td>Your content here</td></tr></table>
<script language='javascript'>
function TogglePopup() {
if (document.all.IdMyPopup.st
document.all.IdMyPopup.sty
} else {
document.all.IdMyPopup.sty
}
}
</script>
*replace document.all.Id... with getElementByID or similar
The width and height of table can be set in CSS too.
Main Topics
Browse All Topics





by: OscurochuPosted on 2007-05-11 at 12:00:00ID: 19074408
If HTML files and HTA files both use javascript (as far as i know they do), then you can open your windows like this:
javascript(_url_, _target_, 'titlebar=no');
that will hide the title bar, hiding the close button, along with the restore and minimize button.
I hope this helps!