Hi,
Debating on where this post belongs but I will give it a shot here. I
use the following javacode in some of my asp .net pages to open a new
window (I think this is the norm from what I have seen):
Response.Write("<Script
language='javascript'>window.open('print_friendly. aspx',null,'height=600,
width=800,status= no, resizable= no, scrollbars=yes,
toolbar=no,location=no,menubar=no ');" & chr(60) & "/script>")
When I use the above code the fonts and placing of things on the
original page (not the one opened) get larger and shift. It is very
weird.
It does not matter which page I call. I tried calling a perfectly blank
..html page and the page that calls still has fonts and placings
affected.
Here is something interesting I noticed by accident. I had one page in
my site where fonts and placing were different from the others. In
fact, different in the same way my pages are affected when I call the
code to open a new page. I investigated and found the affected page was
missing the following code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
I understand why missing this code would affect my page, but why does
opening a new window with javascript through a response.write have the
same affect on the source page? Both pages have the DOCTYPE line
embedded.
Thanks in advance everyone.