? I’ve got a problem, I’ve made a “borderless pop-up” script but when it opens there’s always a scrollbar whatever I do…
Is there a way to get rid of it?
Here’s the script:
[code=php]<HTML>
<HEAD><TITLE>page 1</TITLE>
<SCRIPT LANGUAGE=”JavaScript”>
/* VARIABLES */
ejs_pf_width = 710;
ejs_pf_height = 530;
ejs_pf_file = ‘case_report.html’;
ejs_pf_X = 45;
ejs_pf_y = 35;
/* HTML */
ejs_pf_html = ‘<HTML><BODY LEFTMARGIN=0 MARGINWIDTH=0 TOPMARGIN=0 MARGINHEIGHT=0>’;
ejs_pf_html += ‘<iframe src=”‘+ejs_pf_file+'” framespacing=0 frameborder=no scrollbars=0 scrolling=no width=100% height=100%></iframe></BODY></HTML>’;
/* WINDOW */
function ejs_pf_open()
{
if(document.all&&document.getElementById)
{
ejs_pf_pop = window.open(‘about:blank’,’ejs_pf_pop’,’fullscreen’);
ejs_pf_pop.moveTo(ejs_pf_X,ejs_pf_y);
ejs_pf_pop.resizeTo(ejs_pf_width,ejs_pf_height);
ejs_pf_pop.document.write(ejs_pf_html);
}
else
{
ejs_pf_pop = window.open(‘about:blank’,’ejs_pf_pop’,’toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=’+ejs_pf_width+’, height=’+ejs_pf_height+’, top=’+ejs_pf_y+’, left=’+ejs_pf_X);
ejs_pf_pop.document.write(ejs_pf_html);
}
}
</SCRIPT>
</HEAD>
<BODY>
<P><A HREF=javascript:ejs_pf_open()>Case report</A></P>
</body>
</html>