Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 4 of 4

Thread: popup windows

  1. #1
    Junior Member lana's Avatar
    Join Date
    Nov 2016
    Posts
    4
    Member #
    55653

    popup windows

    <a href="https://www.facebook.com/"
    onclick="NewWindow(this.href,'mywin','640','320',' yes','center');return false"
    onfocus="this.blur()">Download</a>


    above code creates a pop up window when i click download.but i need to modify it so it creates 2 popup windows in seperate tabs when i click download.can anyone help me pls

  2.  

  3. #2
    Senior Member Ronald Roe's Avatar
    Join Date
    Mar 2011
    Location
    Oklahoma City
    Posts
    3,141
    Member #
    27197
    Liked
    959 times
    Just put the same function in the onclick twice, separated by a semicolon. That should do it.
    Ron Roe
    Web Developer
    "If every app were designed using the same design template, oh wait...Bootstrap."

  4. #3
    Junior Member lana's Avatar
    Join Date
    Nov 2016
    Posts
    4
    Member #
    55653
    do you mean like below

    <a href="https://www.facebook.com/"
    onclick="NewWindow(this.href,'mywin','640','320ret urn false"
    onfocus="this.blur()">Download</a ,
    <a href="https://www.facebook.com/"
    onclick="NewWindow(this.href,'mywin','640','320ret urn false"
    onfocus="this.blur()">Download</a

  5. #4
    Senior Member Ronald Roe's Avatar
    Join Date
    Mar 2011
    Location
    Oklahoma City
    Posts
    3,141
    Member #
    27197
    Liked
    959 times
    No. That will create 2 separate links.

    Code:
    <a href="https://www.facebook.com/" 
    onclick="NewWindow(this.href,'mywin','640','320); NewWindow(this.href,'mywin','640','320);"
    onfocus="this.blur()">Download</a>
    I'm assuming NewWindow is a function that is defined elsewhere in your code.
    Ron Roe
    Web Developer
    "If every app were designed using the same design template, oh wait...Bootstrap."


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 07:30 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com