I have created an external .js file (navbar.js) to replace a framed navbar. This .js file is called out of my index.htm file
<script language=javascript" src=navbar.js"></script>
My navbar.js file looks like this
<!-- hide script
document.write("<A HREF='vision.thml'>Vision Statement</A><BR>"
document.write("<A HREF='costs.thml'>Costs Summary</A><BR>"
// end hiding script -->
The above fragment writes onto the index.htm page two lines with their anchors. Clicking Vision Statement opens a window with the vision.html file replacing index.htm. That works fine.
However, I would like when the Costs Summary link is clicked to open a new small window, 200 x 300 px wide.
So far I havent figured out how to do this, as I cannot imbed the width and height parameters into the document.write statement.
I feel sure there must be a way to accomplish what i want to do, and would appreciate some help/suggestions.
thanks
jock
<script language=javascript" src=navbar.js"></script>
My navbar.js file looks like this
<!-- hide script
document.write("<A HREF='vision.thml'>Vision Statement</A><BR>"
document.write("<A HREF='costs.thml'>Costs Summary</A><BR>"
// end hiding script -->
The above fragment writes onto the index.htm page two lines with their anchors. Clicking Vision Statement opens a window with the vision.html file replacing index.htm. That works fine.
However, I would like when the Costs Summary link is clicked to open a new small window, 200 x 300 px wide.
So far I havent figured out how to do this, as I cannot imbed the width and height parameters into the document.write statement.
I feel sure there must be a way to accomplish what i want to do, and would appreciate some help/suggestions.
thanks
jock