![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
22/01/2008, 11:50
|
| | Fecha de Ingreso: enero-2008
Mensajes: 1
Antigüedad: 17 años Puntos: 0 | |
Re: error javascript en firefox hello.
Have you resolve that problem? How you do it?
I have the same problem, please see:
<script type="text/javascript">
function MyObject(MyID, Name){
this.MyID=MyID;
this.Name=Name;
};
function MyObject.prototype.MyFunction() {
return this.MyID;
};
var o = new MyObject(1, 'Item 1');
alert(o.MyFunction());
</script>
It work's fine on IE 7
Any solutions? Very Thanks! |