SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Oct 2005
    Posts
    97
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    (shift + right click) opens iframe in newwindow (how to avoid it )

    like i mentioned i have a page that has an iframe inside
    so when a user clicks it loads the iframe in the body like charm
    but when the user opens it in a new window itts normally will open only the frame page in a new window but the problem is that this frame page is just a form so wat i want is even when i open it in a new window to load the whole page again and not only the frame page

  2. #2
    SitePoint Addict NikoB's Avatar
    Join Date
    Nov 2005
    Location
    Austria
    Posts
    211
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    simple: you cant!
    If your app only works without the shift-click, people will find out soon enough. If they use shift-click there is nothing you can do about it other than writing your own browser (or xul-app)
    Corinis OpenSource Community & Content Management
    http://www.corinis.org

  3. #3
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,875
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    The shift right click is there so that your visitors can choose to ignore what you want and open the frame in a separate window because that is what they want. With web page functionality the visitor's choice overrides the author's.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">


Bookmarks

Posting Permissions

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