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 3 of 3
  1. #1
    Senior Coder NancyJ's Avatar
    Join Date
    Feb 2005
    Location
    Bradford, UK
    Posts
    3,174
    Thanks
    19
    Thanked 66 Times in 65 Posts

    <noscript> popups

    Is there any way to use a popup if js is turned on but just open in a new page with target = _blank if js is turned off?

    EDIT: NM found the answer: for anyone who might be wondering:-

    the key was to add return false; to the on_click popup function

    Code:
    <a href = "images/datasummary_big.gif" target = "_blank" onClick="MM_openBrWindow('images/datasummary_big.gif','','scrollbars=no,width=700,height=710'); return false;" >
    the return false prevents the normal link command from executing
    Last edited by NancyJ; 03-17-2005 at 11:44 AM.

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    yes it does but return false is javascript, so if javascript is turned off it will open in a new window, but your link is setup a bit strange IE may read it but some other browsers may not, keep your quotes and attributes close together, no need for extra spacing
    Code:
    <a href="images/datasummary_big.gif" target="_blank" onClick="MM_openBrWindow('images/datasummary_big.gif','','scrollbars=no,width=700,height=710');return false">Open Window</a>

  • #3
    Senior Coder NancyJ's Avatar
    Join Date
    Feb 2005
    Location
    Bradford, UK
    Posts
    3,174
    Thanks
    19
    Thanked 66 Times in 65 Posts
    works fine in IE, opera and Firefox


  •  

    Posting Permissions

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