SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Enthusiast
    Join Date
    Mar 2004
    Location
    Norway
    Posts
    55
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Open popup window without using a function

    Hi!

    I'm using a WYSIWYG HTML editor in a CMS to edit the page content. I need to add a link that open a link in a window without address bar, scroll bar etc, without disturbing the page with the link.

    The problem is that I can't use a function or onclick event to open the window(a limitation of the editor, and to difficult to explain here). So all my attempts means that the page with the link goes blank with just "[object]" or "false" printed in it(can't return false from outside a function).


    Code:
    <A href="javascript:window.open('default.asp?V_ITEM_ID=383');">
    The code above just open a new window, and the calling window contains just [object]

    Anyone with suggestions?

  2. #2
    SitePoint Wizard stereofrog's Avatar
    Join Date
    Apr 2004
    Location
    germany
    Posts
    4,324
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    <A href="javascript:void(window.open('default.asp?V_ITEM_ID=383'))">

  3. #3
    SitePoint Enthusiast
    Join Date
    Mar 2004
    Location
    Norway
    Posts
    55
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks!

    Worked perfectly!

  4. #4
    SitePoint Wizard creole's Avatar
    Join Date
    Oct 2000
    Location
    Nashvegas Baby!
    Posts
    7,845
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What would the code look like if you wanted to include width and height, etc?
    Adobe Certified Coldfusion MX 7 Developer
    Adobe Certified Advanced Coldfusion MX Developer
    My Blog (new) | My Family | My Freelance | My Recipes

  5. #5
    SitePoint Wizard
    Join Date
    Mar 2001
    Posts
    3,537
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What would the code look like if you wanted to include width and height, etc?
    see: window.open() definition


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
  •