Click to See Complete Forum and Search --> : Opening a mail window


Jack73
07-25-2003, 09:55 AM
I am writing code to open a mail message window and when I click on it a blank frame appears first with page not available and then the outlook mail window appears. Is there something wrong in my code?

button[4] = 'E<u>m</u>ail Us';
buttonWidth[4] = 150; //This is the button's width, in pixels.
action[4] = function () {
// Place here you actions for button 1:
window.open('mailto:carnet.online@btopenworld.com?subject=Carnet Online Query');
// End of actions for button 1.
}

kdcgrohl
07-25-2003, 10:00 AM
try this

// Place here you actions for button 1:
location.href="mailto:carnet.online@btopenworld.com?subject=Carnet Online Query";

Jack73
07-25-2003, 10:03 AM
Worked! Thank you!