+ Reply to Thread
Results 1 to 6 of 6

Thread: IE should never been invented!!

  1. #1
    gaptrast's Avatar
    gaptrast is offline x10 Sophmore gaptrast is an unknown quantity at this point
    Join Date
    Nov 2009
    Posts
    117

    IE should never been invented!!

    <div onclick="window.open('http://x10hosting.com/forums/')">x10 Forum</div>

    If I click at this link in Firefox, chrome or any working browser x10hosting forum will open in a new tab.

    But in IE it opens like a annoying popup window!!

    I hate IE

    Is there anything I can use to get this thing to open a new tab in IE too?

    Kind regards,

    gaptrast
    Last edited by gaptrast; 12-18-2010 at 03:23 PM.
    LOOK RIGHT
    LOOK DOWN
    Questions you never knew you wanted answered - http://Wonderabout.info
    [New site!] Collection of fun computer pranks! - http://thefakevirus.com

  2. #2
    jordan14 is offline x10Hosting Member jordan14 is an unknown quantity at this point
    Join Date
    Oct 2010
    Posts
    2

    Re: IE should never been invented!!

    Wouldn't just changing the code to a link code be better?

    <a href="http://x10hosting.com/forums" target="_blank">x10 Forum</a> < That should open in a new tab?

  3. #3
    Salvatos's Avatar
    Salvatos is offline x10 Lieutenant Salvatos is an unknown quantity at this point
    Join Date
    Jun 2006
    Location
    Québec, Canada
    Posts
    271

    Re: IE should never been invented!!

    According to http://www.javascript-coder.com/wind...dow-open.phtml
    "The following code opens a new browser window with standard features."

    The way I see it, it's standard behaviour. Maybe you just ticked the "open tabs instead of windows" option. I know it's in Firefox, I guess Chrome as well.

  4. #4
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: IE should never been invented!!

    Just as well. Forcing a link to open in a new window takes control away from users in just the sort of area it shouldn't. If users want a new browser or tab, they can open one themselves. New windows/tab have their place, but it's a very limited one (namely, pages that shouldn't be a part of a tab's history, pages that don't lead anywhere else). Off-site links, for example, aren't in this category.

  5. #5
    gaptrast's Avatar
    gaptrast is offline x10 Sophmore gaptrast is an unknown quantity at this point
    Join Date
    Nov 2009
    Posts
    117

    Re: IE should never been invented!!

    SOLVED IT!!!!

    The problem of having a normal <a href="" target="_blank"> was that I ned to modify the href in javascript first. Therefore I did this:::
    Code:
    <script type="text/javascript">
    var var1=/SOMESTRANGETHINGSHERE
    var var2=/THECLOCK OR SOMETHING
    document.write('<a target="_blank" href="http:\\example.com\' + var1 + var2 + '.php">')
    </script>
    <img src="http://x10hosting.com/forums/programming-help/..." />
    </a>
    thanks to all!!!

    ---------- Post added at 03:16 PM ---------- Previous post was at 03:10 PM ----------

    hrrmpf IE does open the target=_blank in a new window too!!!!!!!

    %&¤¤##@¤ Is there any code to fix this (opening a new tab with _blank in IE)??
    LOOK RIGHT
    LOOK DOWN
    Questions you never knew you wanted answered - http://Wonderabout.info
    [New site!] Collection of fun computer pranks! - http://thefakevirus.com

  6. #6
    lemon-tree's Avatar
    lemon-tree is offline x10 Minion lemon-tree has a spectacular aura about
    Join Date
    Nov 2007
    Posts
    1,420

    Re: IE should never been invented!!

    There is no way to force one or the other. Javascript or the link simply says it wants a new browser tab/window at a given location and it is then down to the architecture of the browser to decide whether it will then open a tab or a new window. So trying to use Javascript to decide which one should not be possible as this is going against the user's decision; i.e if they want tabs, they get tabs and your site shouldn't be making new windows instead.

+ Reply to Thread

Similar Threads

  1. The 'I Can't Believe They Invented It' Thread
    By Sharky in forum Off Topic
    Replies: 0
    Last Post: 12-08-2009, 12:51 PM
  2. microsoft invented the ipod?
    By Spartan Erik in forum Scripts & 3rd Party Apps
    Replies: 9
    Last Post: 08-17-2005, 10:52 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers