Similar Posts
Select and Replace all src of a Page By javascript
<script language=”javascript” type=”text/javascript”> var find = ‘http://infinitywebinfo.com’; var re = new RegExp(find, ‘g’); var str=document.body.innerHTML; str = str.replace(re, ”); document.body.innerHTML=str; </script>
How we Can get MAC Address in PHP?
<?php ob_start(); // Turn on output buffering system(‘ipconfig /all’); //Execute external program to display output $mycom=ob_get_contents(); // Capture the output into a variable ob_clean(); // Clean (erase) the output buffer $findme = “Physical”; $pmac = strpos($mycom, $findme); // Find the position of Physical text $mac=substr($mycom,($pmac+36),17); // Get Physical Address echo $mac.’mac address’; ?>
get keycode by javascript
<input type=”text” onKeyUp=”getkeycode(event)”> <script> function getkeycode(eventhandler) { alert(“Key Code Is :”+eventhandler.keyCode); } </script> You may also use this sort of function to disable certain keys, by adding a void(0) in the function as shown. This essentially tells the page to cancel the last event, e.g. the pressing of that certain key. In the example below,…
how to check alphanumeric in php
ctype_alnum(stripslashes($data[‘title’]))