$ ( 'auditPass'). disabled = "disabled";
buttons.disabled = true;
-------------------------------------------------- --------------
DOM technology, with JS object to increase the incident and mass parameters (IE, FF GM)
promptDiv.onclick = function () (closeprompt (prompt_id));
-------------------------------------------------- --------------
JS Back
history.back (-1)
javaScript: history.back (-1)
-------------------------------------------------- --------------
JS parent node
var NoTR = obj.parentNode.parentNode;
-------------------------------------------------- -------------
JS introduced the following three are so
<script type="text/javascript" src="/js/base.js"> </ script>;
<script language="JavaScript" src="/inc/account/account.js"> </ script>
<script src="/js/base.js"> </ script>
-------------------------------------------------- --------------
JS output
document.write ();
-------------------------------------------------- --------------
JS to focus
focus ()
-------------------------------------------------- --------------
JS is disabled
arr [i]. disabled = true;
-------------------------------------------------- --------------
Re-loading the page from the server
location.reload (true);
-------------------------------------------------- --------------
JS open window
window.location = '/ watch / showwatch.do'
-------------------------------------------------- --------------
Attribute change events: onpropertychange
onpropertychange (IE) or oninput (FF)
-------------------------------------------------- --------------
How to login page and press the Enter button on the login button event trigger
<body onkeydown= "if(event.keyCode==13) document.all.btnButton1.click() ">
btnButton1 the id is the login button
Enter events catch JSP
onkeydown = "if (event.keyCode == 13) $ ( 's1'). onclick ();
-------------------------------------------------- --------------
How to remove the input box automatically prompts
If you want to form the whole text box is not the case can be prompted: <form autocomplete="off">
If it is a single text box, then, you can: <input type="text" autocomplete="off">
-------------------------------------------------- --------------
Delete confirmation
function ask (id) (
var mymes = confirm ( "Are you sure you want to delete this image?");
if (mymes) (
window.location = "/ myimg_delete.action? del_img_id =" + id;
)
)







