ShuDudu's Home was started in 2011, but the web data is lost, so now begin again, I would like to make some friends, I hope you like ShuDudu's home.
Current position: ShuDudu > Life >

[Code snippets] Some commonly used small codes (updated 05.06.10)

Thursday on June 9th, 2005Life

[Code snippets] Some commonly used small codes (updated 05.06.10)

1.[js] Refresh the page

parent.document.frames ('framename ').location.reload();

2. Develop web programs. Delete confirmation is a very friendly function, and there is a simple method to implement it:

< script language=" JavaScript">function delete_confirm(e) { if (event.srcElement.outerText== Delete) event.returnValue=confirm(Are you sure you want to perform the deletion operation?& quot;); } document.onclick=delete_confirm;</script>

Copyright Protection: ShuDudu from the original article, reproduced Please keep the link: https://www.shududu.com/life/Code-snippets-Some-commonly-used-small-codes-updated-05-06-10.htm