Team:UCLA/anuved verma ucla2014 workspace

From 2014.igem.org

(Difference between revisions)
(Replaced content with "{{:Team:UCLA/Template}} {{CSS/Main}} <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset="UTF-8"/> </head> <body> <div id="box" style="widt...")
Line 12: Line 12:
<script type="text/javascript" charset="utf-8">
<script type="text/javascript" charset="utf-8">
 +
function addEvent(obj, evt, fn, capture){
 +
evt = evt.replace('on', ' ');
 +
if(obj.attachEvent)
 +
obj.attachEvent('on' + evnt, fn);
 +
else{
 +
if(!capture) capture = false;
 +
obj.addEventListener(evt, fn, capture);
 +
}
 +
 +
var box = document.getElementById('box');
 +
addEvent(box, 'click', function(){
 +
alert('clicked');
 +
})
</script>
</script>
</body>
</body>
</html>
</html>

Revision as of 20:30, 11 July 2014

iGEM UCLA