[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Javascript Question
- Subject: [ale] Javascript Question
- From: mgm at atsga.com (Mike Millson)
- Date: Mon, 30 Sep 2002 10:04:58 -0400
I added it below.
Mike
-----Original Message-----
From: cfowler [mailto:cfowler at outpostsentinel.com]
To: ale at ale.org
Sent: Monday, September 30, 2002 9:56 AM
To: ale at ale.org
Subject: [ale] Javascript Question
I'm having a blank mind trying to figure something out.
If The user selects okay then I want to go to a URL. The url variable
in the script. Can someone tell me the prpoer JavaScript function to do
this?
function rebootPort(p) {
var msg;
var url = '/cgi-bin/powercycle?reboot=1&port=' + p;
msg = 'Cycle power on port ' + p + '?';
if(confirm(msg)) {
window.location = url;
}
}
---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be
sent to listmaster at ale dot org.
---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be
sent to listmaster at ale dot org.