Welcome to WebmasterWorld Guest from 54.147.134.218

Forum Moderators: open

Message Too Old, No Replies

New window via Javascript

Control the margins?

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

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Sept 28, 2001
posts:779
votes: 0


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)

Senior Member

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

joined:Mar 20, 2002
posts:3732
votes: 0


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)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Sept 28, 2001
posts:779
votes: 0


Hmmm.

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

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

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Sept 28, 2001
posts:779
votes: 0


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

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members