Forum Moderators: open
<script type="text/javascript">
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=320,height=240,left = 200,top = 200');");
}
</script>
Is there a way to specify that the window opened will not have any borders?
Many thanks,
Scrimbler
<script type="text/javascript">
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=320,height=240,left = 200,top = 200');");
[b] eval("imgWin = page" + id +";");
imgWin.document.body.style.margin = '0'; [/b]
}
</script> You could also simply improve the presentation of that image by changing the background color of the pop-up with the first bold line above being changed to:
imgWin.document.body.style.backgroundColor = 'black'; Welcome to WebmasterWorld, Scrimbler!
[msdn.microsoft.com...]
[msdn.microsoft.com...]