Wednesday, April 18, 2012

JavaScript Create function

How can i define following object properties of html and define as a function in javascript that would return some object.


<object id="desktop" type="application/x-desktop" width="500" height="200">
<param name="client_type" value="VISTA" /> </object>

I want to acheive something like below in javascript.So that I can call GetDesktop() function from outside of javascript.


 function GetDesktop()
{ = "desktop;
object.type = "application/x-desktop"

No comments:

Post a Comment