Results 1 to 2 of 2

Thread: New window help

  1. #1
    Join Date
    Dec 2004
    Posts
    83
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question New window help

    <script>
    document.getElementsByTagName('td')[5].innerHTML = document.getElementsByTagName('td')[5].innerHTML + ' <a href="http://viktorix.hyperboards3.com/index.cgi?action=pm_view " title="Check your mail. Opens new window." target="_blank"><img onmouseover=\"this.className=\'normal\'\" onmouseout=\"this.className=\'tdicons\'\" class=tdicons src="http://home.ripway.com/2005-5/316598/gr_mail.GIF" border="0" alt="Private Messages"/></a>';
    </script>

    I want this window to be open in specified width and height (ex:500x500).
    I tried adding width and height but it didn't work. Any help guys?


    Visit my "almost finished" site. Viktorix Database

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Try:

    Code:
    <script>
    document.getElementsByTagName('td')[5].innerHTML = document.getElementsByTagName('td')[5].innerHTML + ' <a href="#" title="Check your mail. Opens new window." onclick="window.open(\'http://viktorix.hyperboards3.com/index.cgi?action=pm_view\',\'mailWin\',\'width=500, height=500\');return false"><img onmouseover=\"this.className=\'normal\'\" onmouseout=\"this.className=\'tdicons\'\" class=tdicons src="http://home.ripway.com/2005-5/316598/gr_mail.GIF" border="0" alt="Private Messages"/></a>';
    </script>
    Dimensions of new window highlighted red.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •