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,068
    Thanks
    0
    Thanked 256 Times in 252 Posts
    var s = '<a href="http://localhost/cal5/bla.asp?date='+Cal.FormatDate(PValue)+
    '" target="_blank">link</a>';
    Glenn
    ____________________________________

    My Blog
    Tower of Hanoi Android app (FREE!)
    Tower of Hanoi Leaderboard
    Samegame Facebook App
    vBulletin Plugins
    ____________________________________

  • #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,068
    Thanks
    0
    Thanked 256 Times in 252 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>';
    Glenn
    ____________________________________

    My Blog
    Tower of Hanoi Android app (FREE!)
    Tower of Hanoi Leaderboard
    Samegame Facebook App
    vBulletin Plugins
    ____________________________________


  •  

    Posting Permissions

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