473,763 Members | 6,401 Online
Bytes | Software Development & Data Engineering Community
+ 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="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
Jul 23 '05 #1
1 3047
In article <oN************ ********@comcas t.com>, mo***********@y ahoo.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="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.


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?
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
50587
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 = WScript.CreateObject("WScript.Network") sPwd = inputbox("Enter password") WshNetwork.MapNetworkDrive "J:", "\\server1\data", false, "xyz_net\John", sPwd Msgbox "Drives has been map successful"
1
1874
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 between them. Is there a free-standing tool or a not too expensive HTML editor that will do this, or is this capability built into any other apps? Again, this is on Mac OS 9, and my current toolkit consists of Netscape 7.0 and BBEdit (plus...
9
3519
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 screen-resolution independent. The image tag's "ismap" generates exactly the numbers I'm looking for but I can't figure out how to capture them. "ismap" seems to work only when used in conjunction with an "href" and a new page is automatically...
16
4455
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
2275
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 of "value" type of map, I get the following error: // -------------------------------------------- /usr/include/c++/3.2.3/bits/stl_map.h:225: no matching function for call to `FieldType::FieldType()'
3
1928
by: Thembi | last post by:
I wanna know if ,the map stores sorted data or not.
1
2021
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
1209
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 i could show information about it. I was wondering if there is any already developed software that would make this easier. Someone told me to try out pygame, but I've never dealt with it so I don't really know how it works, what the interface is...
3
4309
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 in \anmeldung2.cfm: line 404
0
9563
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10144
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9997
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9937
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8821
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6642
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5270
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3917
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 we have to send another system
3
3522
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.