N
Nom DePlume
What I am trying to should be everyday simple, but I just can't seem to
grasp it.
What I want to do is click a link and have that link send a URL to a
function to open a new widow of a certain size. I want to be able to use
the same function for several links. What I have so far is this in the
head
<script type="text/javascript" language="javascript">
function smallWindow(myPage) {
window.open("myPage",toolbar=0,status=0,directories=0,menubar=0,resizabl
e=0,dependant=1,width=400, height=300);
}
Then in the link I have in the body is
<a href="javascript:smallWindow('http://www.somepage.com')">somepage</a>
It will open a new window, but it can't find the specified page. It also
doesn't seem to be sizing to what I want. (BTW, the code is all on one
line, it's just wrapping in my news reader).
I know this should be an everyday simple thing, but I just can't seem to
get a hold on it.
thanks for any help in advance,
grasp it.
What I want to do is click a link and have that link send a URL to a
function to open a new widow of a certain size. I want to be able to use
the same function for several links. What I have so far is this in the
head
<script type="text/javascript" language="javascript">
function smallWindow(myPage) {
window.open("myPage",toolbar=0,status=0,directories=0,menubar=0,resizabl
e=0,dependant=1,width=400, height=300);
}
Then in the link I have in the body is
<a href="javascript:smallWindow('http://www.somepage.com')">somepage</a>
It will open a new window, but it can't find the specified page. It also
doesn't seem to be sizing to what I want. (BTW, the code is all on one
line, it's just wrapping in my news reader).
I know this should be an everyday simple thing, but I just can't seem to
get a hold on it.
thanks for any help in advance,