Click to See Complete Forum and Search --> : Adding alert popup to dropdown menus


adele
04-01-2003, 05:20 PM
I am using a drop down menu in a site and have it launching a new browser for a few links...like this

["Reorder Checks","javascript:window.open('https://reorder.harland.net/')",1,0,0],

I need it to pop up a window like I have from links on the rest of the site like this..

onclick="return confirm(You are leaving this site);"

I am not able to integrate the two into one statement can someone please help...

Jona
04-01-2003, 05:24 PM
Can you please post a little more code so we see your functions and/or HTML tags and event handlers?

adele
04-01-2003, 06:12 PM
The drop down menus that I am using have the menus in an array on a seperate page like this...

//Absolute Position Info
HM_Array2 = [
[140, // menu width
139, // left_position
30, // top_position
"#ffffff", // font_color
"#ffffff", // mouseover_font_color
"#2AA62A", // background_color
"#2375BE", // mouseover_background_color
"#000000", // border_color
"#000000", // separator_color
0, // top_is_permanent
0, // top_is_horizontal
0, // tree_is_horizontal
1, // position_under
1, // top_more_images_visible
1, // tree_more_images_visible
"null", // evaluate_upon_tree_show
"null", // evaluate_upon_tree_hide
, // right-to-left
], // display_on_click
["Reorder Checks","javascript:window.open('https://reorder.harland.net/')",1,0,0]
]

this part of the script is included in the main HTML
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">

<!--

BPath = 'http://www.website.com/';
IPath = 'http://www.website.com/images/';

if(window.event + "" == "undefined") event = null;
function HM_f_PopUp(){return false};
function HM_f_PopDown(){return false};
popUp = HM_f_PopUp;
popDown = HM_f_PopDown;

//-->

</SCRIPT>



<SCRIPT LANGUAGE="JavaScript1.2" TYPE="text/javascript">

<!--

HM_PG_MenuWidth = 150;
HM_PG_FontFamily = "Verdana";
HM_PG_FontSize = 9;
HM_PG_FontBold = 0;
HM_PG_FontItalic = 0;
HM_PG_FontColor = "blue";
HM_PG_FontColorOver = "white";
HM_PG_BGColor = "#7EA493";
HM_PG_BGColorOver = "#7EA493";
HM_PG_ItemPadding = 3;

HM_PG_BorderWidth = 1;
HM_PG_BorderColor = "black";
HM_PG_BorderStyle = "solid";
HM_PG_SeparatorSize = 2;
HM_PG_SeparatorColor = "#9B0ADF";

HM_PG_ImageSrc = "/images/clear.gif";
HM_PG_ImageSrcLeft = "";

HM_PG_ImageSrcOver = "/images/clear.gif";
HM_PG_ImageSrcLeftOver = "";

HM_PG_ImageSize = 5;
HM_PG_ImageHorizSpace = 0;
HM_PG_ImageVertSpace = 2;

HM_PG_KeepHilite = true;
HM_PG_ClickStart = 0;
HM_PG_ClickKill = false;
HM_PG_ChildOverlap = 20;
HM_PG_ChildOffset = 10;
HM_PG_ChildPerCentOver = null;
HM_PG_TopSecondsVisible = .5;
HM_PG_StatusDisplayBuild =0;
HM_PG_StatusDisplayLink = 0;
HM_PG_UponDisplay = null;
HM_PG_UponHide = null;
HM_PG_RightToLeft = 0;

HM_PG_CreateTopOnly = 0;
HM_PG_ShowLinkCursor = 1;
HM_PG_NSFontOver = true;



//HM_a_TreesToBuild = [2];


//-->

</SCRIPT>

and then at the end of the HTML page is referenced with a js Loader page and js pages for each browsers, the loader page then references the Array.js page which is where I am trying to have the page open a new browser window and have a pop alert message