Welcome to WebmasterWorld Guest from 54.144.48.252

Forum Moderators: open

Message Too Old, No Replies

New window via Javascript

Control the margins?

     
3:41 am on Mar 19, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi everyone,

Got a javascript question: I'm trying to open an image in a new window...not an html file, but an image. Don't ask why :) But this is the proble: The image opens up in a new window just fine, but the new window has margins set in it. How can I remove the margins? Please note: I can't make an actual html page open, it has to be a certain test.jpg image file.

Is there a way to set no margins for the new window, in the originating link?

Thanks for any help,

Matt

4:16 am on Mar 19, 2003 (gmt 0)

WebmasterWorld Senior Member korkus2000 is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Can you do a document.write html file from the calling window? I don't think you can do anything to margins without some sort of css/html/javascript on the page.
6:09 am on Mar 19, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hmmm.

Do you mean actually writing an html file from the javascript code?

7:19 am on Mar 19, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Actually, what I ended up doing now is a work around - I just added 20 pixels to the width of the window, and made the margin uniform around the image. It's not perfect, but hey, it works.

Matt

 

Featured Threads

Hot Threads This Week

Hot Threads This Month