<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><title>Basic JavaScript OOP</title></
閱讀本文之前,請先看下面一道題:題目17:Read the following javascript code: var someText="web2.0 .net2.0";var pattern=/("w+)("d)".("d)/g;var outCome_exec=pattern.exec(someText);var outCome_matc=someText.match(pattern);What is outCome_exec[1] and outCome_matc[1]?
<html><head><title>test</title><script language="javascript">//var select1_len = document.frm.s1.options.length;var select2 = new Array(4);for (i=0; i<4; i++) { select2[i] = new Array();}//定義基本選項select2[0][0] = new Op
tag:Javascript 快顯視窗 彈出層 強制回應對話方塊 function sAlert(str,time){ var msgw,msgh,bordercolor; msgw=400;//Width msgh=100;//Height titleheight=25 //title Height bordercolor="#336699";//boder color titlecolor="#99CCFF";//title color var
onkeypress occurs when a keyboard key is pressed or held downonchange occurs when the content of a field changesOk, let's go further. If you want to validate the character number limitation of one textarea control, which one you should choose?I told
只是做個記錄,以後不要自己滿街找代碼。。。(function (clover) { clover.loadScript = function loadScript(url, callback) {var heads = document.getElementsByTagName('head');if (heads.length == 0) { alert("page must have one head element"); }var head =
function key(){if(event.shiftKey){window.close();}//禁止Shiftif(event.altKey){window.close();}//禁止Altif(event.ctrlKey){window.close();}//禁止Ctrlreturn false;}document.onkeydown=key; function nocontextmenu(){//alert("a");try{event.cancelBubble =