View Full Version : load page and javascript!!

04-13-2007, 12:38 PM
Hello again,

i would like to ask if it is possible to call a page with an anchor tag and also run the javascript from that page..

what i mean is that the new page that i load has some javascript in it, in which i want to pass some parameters..

I hope u understand what i mean.

Something like :

<a href="products.html 'javascript:doSomethingInProducts(01)'">product01</a

04-13-2007, 01:16 PM
Instead of using the javascript: protocol, use the onclick event handler:

<a href="products.html" onclick="doSomethingInProducts(01);">product01</a