is there a way to use the document.window feature to have more then one page open up from the same function?? what I wanna do is: on a form the user clicks the 'view' link and a new window pops up allowing the user to see the content before d/l it...instead of having many functions and call them individually, can I have one function that calls the approiate file.
this is what I did so far:
<script type="text/javascript">
var one = window.mypage.open
var two = window.mypage.open
function openwindow(one,two)
{
window.open("page1.htm","my_window","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=auto,resizable=no,copyhistory=no,width=500,height=500"
window.open("page2.htm","my_window","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=auto,resizable=no,copyhistory=no,width=500,height=500"
}
</script>
and this is my form:
<form name="mypage">
<a href=javascriptpenwindow(one)> view (this will open page1.htm only)</a>
<br><br>
<a href=javascriptpenwindow(two)> view (this will open page2.htm only)</a>
</form>
I have not failed; I merely found 100,000 different ways of not succeding...
this is what I did so far:
<script type="text/javascript">
var one = window.mypage.open
var two = window.mypage.open
function openwindow(one,two)
{
window.open("page1.htm","my_window","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=auto,resizable=no,copyhistory=no,width=500,height=500"
window.open("page2.htm","my_window","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=auto,resizable=no,copyhistory=no,width=500,height=500"
}
</script>
and this is my form:
<form name="mypage">
<a href=javascriptpenwindow(one)> view (this will open page1.htm only)</a>
<br><br>
<a href=javascriptpenwindow(two)> view (this will open page2.htm only)</a>
</form>
I have not failed; I merely found 100,000 different ways of not succeding...