javascript popup using html "map" tag?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mosher

    #1

    javascript popup using html "map" tag?

    Hi all, is there a good way to have a popup window appear using Javascript
    and the html "map" tag? Here is my code:

    <map name="navigatio n">
    <area shape="rect" coords="5,57,45 ,70" href="index.php " alt="Home">
    </map>

    I would like to have this link be a Javascript "onclick" type popup function
    with no scrollbar, etc.

    Thanks,

    Mosher


  • kaeli

    #2
    Re: javascript popup using html &quot;map&qu ot; tag?

    In article <oNudnco6cvX8Ad nfRVn-2g@comcast.com> , mosh_king2000@y ahoo.com
    enlightened us with...[color=blue]
    > Hi all, is there a good way to have a popup window appear using Javascript
    > and the html "map" tag? Here is my code:
    >
    > <map name="navigatio n">
    > <area shape="rect" coords="5,57,45 ,70" href="index.php " alt="Home">
    > </map>
    >
    > I would like to have this link be a Javascript "onclick" type popup function
    > with no scrollbar, etc.
    >[/color]

    Not the best solution in the world by any means, but it should work for most
    people:

    <area shape="rect" coords="5,57,45 ,70" href="javascrip t:window.open
    ('index.php','' ,'height=400,wi dth=
    400,toolbar=no, scrollbar=no,re sizable=yes'" alt="Home">

    Note that people who use tabbed browsers and prefer to middle-click to open
    links in tabs will hate you. ;)

    I'm not sure if the area element supports onClick, but this would be a better
    solution if it does: (I'm too lazy right now to go look; I just woke up
    *LOL*)

    <area shape="rect" coords="5,57,45 ,70" href="index.php " onClick="window .open
    ('index.php','' ,'height=400,wi dth=
    400,toolbar=no, scrollbar=no,re sizable=yes';re turn false;" alt="Home">

    That way, clicking on the link would open in a new window for left-clicks,
    but people middle-clicking or right-clicking or people without script enabled
    could still use it as they desired.

    --
    --
    ~kaeli~
    You can't have everything. Where would you put it?



    Comment

    Working...