kpd
09-10-2002, 03:34 PM
Hi,
I'm using JavaScript to pick up a consultant's id # and put it at the end of the URL so that when an ID# is entered, the person is taken to that consultant's website.
function goTo() {
var cons_id = prompt("Please type in your Consultant ID number here", "");
consSite = window.open("http://www.sampleurl.com/" + cons_id +"/");
}
The code works, except that when the Consultant's window opens, there are no features, such as the back button, location, etc.
I've tried adding features, as shown below, but only the first feature will work... I get the toolbar, but not the location, etc.
function goTo() {
var cons_id = prompt("Please type in your Consultant ID number here", "");
consSite = window.open("http://www.sampleurl.com/" + cons_id +"/", "", "toolbar", "location");
}
What am I doing wrong? Or, do I need to approach it differently?
It's called out like this:
Click <a href="#" onClick="goTo(); return false;">here</a> to
view your Consultant's website.
Thanks in advance for any help,
Kathy
I'm using JavaScript to pick up a consultant's id # and put it at the end of the URL so that when an ID# is entered, the person is taken to that consultant's website.
function goTo() {
var cons_id = prompt("Please type in your Consultant ID number here", "");
consSite = window.open("http://www.sampleurl.com/" + cons_id +"/");
}
The code works, except that when the Consultant's window opens, there are no features, such as the back button, location, etc.
I've tried adding features, as shown below, but only the first feature will work... I get the toolbar, but not the location, etc.
function goTo() {
var cons_id = prompt("Please type in your Consultant ID number here", "");
consSite = window.open("http://www.sampleurl.com/" + cons_id +"/", "", "toolbar", "location");
}
What am I doing wrong? Or, do I need to approach it differently?
It's called out like this:
Click <a href="#" onClick="goTo(); return false;">here</a> to
view your Consultant's website.
Thanks in advance for any help,
Kathy