473,467 Members | 1,645 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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="navigation">
<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
Jul 23 '05 #1
1 3023
In article <oN********************@comcast.com>, mo***********@yahoo.com
enlightened us with...
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="navigation">
<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.


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="javascript:window.open
('index.php','','height=400,width=
400,toolbar=no,scrollbar=no,resizable=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,width=
400,toolbar=no,scrollbar=no,resizable=yes';return 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?
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Alex Ang | last post by:
I have written the following VBScript program. It is stored into a file "map_drive.vbs". It successfully mapped to a network drive \\server1\data. Dim WshNetwork Set WshNetwork =...
1
by: AES/newspost | last post by:
I'd like to generate a site map or some kind of cascaded outline or tree diagram of a web site stored in a folder on a Mac under OS 9, showing the file names and the links or hierarchical relations...
9
by: Martin | last post by:
For use in IE only: I need to make some calculations (in a client-side script) based on the X,Y coordinates of the mouse pointer when the user clicks on an image. I want the coordinates to be...
16
by: Gufus | last post by:
Hi Group... <a name="#top"></a> ----del---- ----del---- <img SRC="images/top.gif" USEMAP="#top" BORDER=0> <map NAME="top">
5
by: Diwa | last post by:
Does the "value" type (value as in key-value pair )of "std::map" require a default ctor even if it is not used ? If I comment out Line 1 in the code attached later, i.e remove the default ctor...
3
by: Thembi | last post by:
I wanna know if ,the map stores sorted data or not.
1
by: siva07 | last post by:
Hi experts i want get a folder which is outside the root directory that is i use as a private directory help me Thanks
0
by: William Manley | last post by:
Lately I've been thinking of trying to make a map for a game I play. The current maps are all images, they are basically just tiles each. I'd want to be able to have each tile its own small image so...
3
by: blackrunner | last post by:
ERROR in my Query?! ERROR: Element GESCHLECHT is undefined in FORM. i think everything ok. Maby somebody can help me here Element GESCHLECHT is undefined in FORM. The error occurred...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.