Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

Add onclick event for object taag

Avatar of sastry_sagi
sastry_sagi asked on
JavaScriptScripting Languages
6 Comments1 Solution1189 ViewsLast Modified:
Hi Experts,
                I am using below code to add video to my page it is working fine,I want to add onclick
event for this tag. when i add  onclick=alert("Test")  the alert is not coming.Any Suggestion
my code is
var htmlContent = '<object onclick=alert("Test") classid="CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6" type="application/x-oleobject" width="320" height="305" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715" standby="Loading Microsoft Windows Media Player components...">' +        
        '<param name="url" value="'+obj+'">' + 
        '<param name="autostart" value="false">' +
        '<param name="ShowStatusBar" value="true">' +
        '<param name="volume" value="100">' +
Avatar of third
thirdFlag of Philippines image

Our community of experts have been thoroughly vetted for their expertise and industry experience.

This problem has been solved!
Unlock 1 Answer and 6 Comments.
See Answers