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 5 of 5
  1. #1
    Lbb
    Lbb is offline
    New to the CF scene
    Join Date
    Aug 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question link (and new window)

    Hia all,
    i'm having a problem opening this in a new window using the _blank option,
    this is a combined JS and HTML link:
    <a href=\"http://localhost/cal5/bla.asp?date='"+Cal.FormatDate(PValue)+"'\">
    now, i want to enter the target="_blank" stuff in it to open this thing in a new window
    i've tried a few variation but it didn't help,
    my question is:
    How?
    thanks
    La bla bla

  • #2
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,037
    Thanks
    0
    Thanked 250 Times in 246 Posts
    var s = '<a href="http://localhost/cal5/bla.asp?date='+Cal.FormatDate(PValue)+
    '" target="_blank">link</a>';

  • #3
    Banned
    Join Date
    Sep 2003
    Posts
    3,620
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Try: <a target=\"blank\" href=.....
    Or: window.open(....)

  • #4
    Lbb
    Lbb is offline
    New to the CF scene
    Join Date
    Aug 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question

    thanks Willy Duitt
    one more thing,
    how can i detemine the size of that window (the new 1?)
    thanks,
    La bla bla

  • #5
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,037
    Thanks
    0
    Thanked 250 Times in 246 Posts
    You mean you want to specify the size of the popup window?

    var s = '<a href="http://localhost/cal5/bla.asp?date='+Cal.FormatDate(PValue)+
    '" target="_blank" onclick="window.open(this.href, this.target, 'width=500, height=400');return false">link</a>';


  •  

    Posting Permissions

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