Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Nov 2004
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Controlling browsers

    How can I email a webpage to a bunch of users so that when they open the page it automatically opens without title bars, scrollbars etc. and is of a specific size?

    I've found the code below but it opens the window in a new window (from http://www.htmlgoodies.com/beyond/openwin.html). I'd like it to open within itself so to speak. That is, when they open the page it is automatically configured.

    Thanks in advance.

    <html>
    <head>

    <SCRIPT LANGUAGE="JavaScript">
    function openindex()
    {
    OpenWindow=window.open("", "newwin", "height=250, width=250,toolbar=no,scrollbars="+scroll+",menubar=no");

    OpenWindow.document.write("<HTML>")
    OpenWindow.document.write("<TITLE>Title Goes Here</TITLE>")
    OpenWindow.document.write("<BODY BGCOLOR=blue>")
    OpenWindow.document.write("<h1>Hello!</h1>")
    OpenWindow.document.write("This text will appear in the window!")
    OpenWindow.document.write("</BODY>")
    OpenWindow.document.write("</HTML>")

    OpenWindow.document.close()
    self.name="main"
    }
    </SCRIPT>

    </head>

    <body onLoad="openindex()" >

    </body>
    </html>

  • #2
    Banned
    Join Date
    Sep 2003
    Posts
    3,620
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You can't...

    Besides your use of an onload event will be caught and suppressed by a substantial majority of users popup blockers... Not withstanding, in this day and age, only an idiot would allow html in emails....

    What this is.... is a prime example of an excercise in futility...

    .....Willy

  • #3
    Senior Coder
    Join Date
    Feb 2004
    Location
    Edinburgh
    Posts
    1,352
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Willy Duitt
    in this day and age, only an idiot would allow html in emails.
    quite true, tho not necessarily an issue if you use Thunderbird as your client
    *keep it simple (TM)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •