
March 27th, 2007, 03:23 AM
|
|
Registered User
|
|
Join Date: Feb 2007
Posts: 13
Time spent in forums: 2 h 2 m 8 sec
Reputation Power: 0
|
|
|
Set HomePage script frm Flash
Hi,
I am creating a Flash website where i have a link for Set Homepage. When this button is clicked , i want a javascript function to execute. This is what i tried. But it is not working at all.
The javascript works fine by itself, but when brought into flash it gives errors. Can anyone please help ? This is the js...
Code:
<a href="#" onClick="this.style.behavior='url(#default#homepage)';this. setHomePage('http://dynamicdrive.com');">Click here to make Dynamic Drive your default homepage</a>
And this is a simple geturl for flash
getURL('javascript :test()');
test() is a function that contains the js in the html file. I test the same with window.open, that worked perfectly.
|