Page 1 of 1

help with <object>

Posted: Mon Jul 18, 2005 6:46 am
by raghavan20
I earlier had three links <a> and I use the onclick event to write
<a onclick = "window.location = '';
self.resizeTo(,)">

but I have to replace with flash buttons in place of <a> tags. I am wondering is it possible to use 'onclick property' with '<object>' or how both of those JS commands can be run on click of a flash button?

Posted: Mon Jul 18, 2005 6:59 am
by djot
Perhaps does work like an image link ... I don't know

Code: Select all

<a onclick = &quote;window.location = ''; self.resizeTo(,)&quote;><object>...</object></a>

Posted: Tue Jul 19, 2005 4:28 am
by raghavan20
looks like it doesnot work

Solved

Posted: Thu Jul 21, 2005 2:18 am
by raghavan20
I have to give the javascript code in the url of the flash button which will run all the scripts

link: javascript:window.location(); self.resizeTo(,);