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 2 of 2
  1. #1
    Regular Coder
    Join Date
    Mar 2003
    Posts
    165
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question pop window as a var

    is it possible to have a pop win script as a var? or how could i use a pop-win script as a var? So when the var is called it opens the pop-up something like so:

    var upgradeURL = 'javascript:window.open("images/acr.html","NewWin1","scrollbars=yes,width=700,height=480")';


    Thanks

  • #2
    New Coder
    Join Date
    May 2004
    Posts
    51
    Thanks
    0
    Thanked 0 Times in 0 Posts
    hmm, i'm nt really skill in javascript so i help as much as possible...

    var is to assign a value into element if i'm not wrong so u can store the 'javascript:window.open("images/acr.html","NewWin1","scrollbars=yes,width=700,height=480")';
    as string .
    so u can
    var upgradeURL = 'javascript:window.open("images/acr.html","NewWin1","scrollbars=yes,width=700,height=480")';


  •  

    Posting Permissions

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