SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Addict itsource's Avatar
    Join Date
    Jun 2001
    Location
    Thailand
    Posts
    369
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    problem when open new window with java script

    I have 1 button, when click this button, it open new window
    PHP Code:
    <input type=button value='Insert Emotion' 
    onclick='exmp=window.open("smile.html","isag","toolbar=0 menubar=0 scrollbar=1 resizeable=1");'
    I'm specific, not toolbar, not menubar, and have scrollbar and can resizable but the new windows don't have scrollbar cause I can't see some text on window and cann't resizable.

    I use IE6 on win98se

    Any one help?
    I live in Thailand. My English grammar not well.

  2. #2
    pg for mild peril cow's Avatar
    Join Date
    Mar 2000
    Location
    nevada, usa
    Posts
    636
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    change your scrollbar=1 to scrollbars=1
    "There's no justice like angry mob justice!" --Seymour Skinner

  3. #3
    You talkin to me? Anarchos's Avatar
    Join Date
    Oct 2000
    Location
    Austin, TX
    Posts
    1,438
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Your options should just be "scrollbars, resizeable"
    ck :: bringing chris to the masses.

  4. #4
    SitePoint Addict itsource's Avatar
    Join Date
    Jun 2001
    Location
    Thailand
    Posts
    369
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks very much.
    I'm type wrong word

    scrollbars=1 resizable=1 or
    scrollbars,resizable

    (not resizeable)
    I live in Thailand. My English grammar not well.

  5. #5
    SitePoint Addict itsource's Avatar
    Join Date
    Jun 2001
    Location
    Thailand
    Posts
    369
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have problem with netscape, code that I post work only IE6 but scrollbars not work in Netscape6.

    I try change to

    scrollbars
    scrollbars=1

    but it not show scrollbar in Netscape. Anyone help?
    I live in Thailand. My English grammar not well.

  6. #6
    SitePoint Guru Vincent Puglia's Avatar
    Join Date
    Feb 2000
    Location
    where the World once stood
    Posts
    700
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi itsource,

    1) there must be commas between each property
    2) nn4 prefers 'no/yes' IE doesn't care.
    3) don't forget the form tags

    <form>
    <input type=button value='Insert Emotion'
    onclick='exmp=window.open("http://members.aol.com/grassblad","isag","toolbar=no,menubar=no,scrollbars=yes,resizable=yes");'>
    </form>

    Vinny
    Where the World Once Stood
    the blades of grass
    cut me still


Bookmarks

Posting Permissions

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