H
Helpful person
I am new to Javascript and have a fairly straightforward question. I
am trying to use an image as a link to open a new page with the
onmouseclick event. In general this seems to work fine with the open
statement.
I wish to use the same script at various places in my web and hence
wish to pass to the javascript function the URL location and the
width and height of the new page. I am having no luck trying to get
the open statement to work with passed arguements.
After doing a little research it seems I should be using the eval
statement, but this does not work. What am I doing wrong, and should
I be passing arguements to the open statement a different way?
The web page is at www.snowfisher.com/test.htm
am trying to use an image as a link to open a new page with the
onmouseclick event. In general this seems to work fine with the open
statement.
I wish to use the same script at various places in my web and hence
wish to pass to the javascript function the URL location and the
width and height of the new page. I am having no luck trying to get
the open statement to work with passed arguements.
After doing a little research it seems I should be using the eval
statement, but this does not work. What am I doing wrong, and should
I be passing arguements to the open statement a different way?
The web page is at www.snowfisher.com/test.htm