
May 15th, 2001, 12:36 AM
|
|
Contributing User
|
|
Join Date: Nov 2000
Location: San Jose, CA
Posts: 58
Time spent in forums: 1 h 14 m 9 sec
Reputation Power: 13
|
|
|
URL JavaScript Function
I would like to call a function to open a new window and with the url in this code. I don't know how to call function in a href with in the href attribute? <A HREF=\"" + db[i].URL + "\" TARGET=\"" + top + "\">"
Here is the function thaqt I would like to call:
<script language="JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
MM_openBrWindow('<?print"$popup";?>','shipwin','scrollbars=yes,resizable=yes,width=800,height=100,left=0,top=0');
Code:
if (db[i].URL == "" || db[i].URL == null) {
Outline += " " + db[i].display // no link, just a listed item
}
else {
Outline += " <A HREF=\"" + db[i].URL + "\" TARGET=\"" + top + "\">" + db[i].display + "</A>"
}
// Bold if at level 0
if (currIndent == 0) {
Outline = "<B>" + Outline + "</B>"URL == null) {
Any help would be great!
|