Yes, that was very clear, but i wasnt trying enough.. I wanted achieve: onClick="javascript:str(stro = './page.html');" Very quick, simple and useful ;] Cheers
On 7 Lip, 21:33, George <[EMAIL PROTECTED]> wrote: > Can you describe this scenario a little more? It may not be quite > clear what you're trying to achieve. > Cheers, > Georgr > > > > > im loading my pages through ajax and id like to have one script for > > all pages by adding: > > var page = './page.html' > > to > > onClick="javascript:name();" > > Is that possible? How to do that?