How can I remove backslashes and forwardslashes from a string or remove forwardslash from a url using java script.I’m going to explain to do this by using regular expressions and simple core java script.
Tag: Java Script
JQuery check page is fully loaded or not | $(document).ready() vs $(window).load()
How to check web page is fully load or not using JQuery.First you must understand JQuery document.ready and window.load functions.Here this is simply describes also differences between document.ready and window.load functions and usages.
Java script detect iPhone, iPad, iPod and Android devices
How to detect iPhone, iPad, iPod, Blackberry and Android or detect mobile devices using Java script.This is very useful to developing your web sites to view those iPhone, iPad, iPod, Blackberry and Android also mobile phones.Here, examples to detect iPhone,…
Java script detect Touch-screen devices
When you are developing web sites for compatibility all browsers and mobile devices.But sometimes you want to detect who viewing the site that using device is consisting with touch-screen or not.Here is a perfect,tested and easy example to detect touch…
Java Script get combo box selected value
How to get user selected value and text in the drop down box/combo box using java script.Here tested easy best methods to get combo box value.This is describes also browser compatibility.
Java Script check string in the URL
How to check if some string is exist or not in the url using java script.For a example,I want to check “.php” extension exist in the current url.This can be do like this.
HTML Cross-Browser Placeholder
How to create html placeholder to working all web browsers.This can be done using simple java script.Working for all major web browser.First of all create simple input field like this.
Java Script check date range is valid or not
Q:- I want to validate date range or if exist date range by using java script. Answer :- This is can be done using Date() object.Look at the following function.It will return date range is valid or not.Simply you have…
PHP array convert to Java Script array
Sometimes when we using php, we want to convert php array to java script array.php array can be convert to java script easily.Here is a easy and best methods to do this. PHP provides json_encode() function to convert PHP arrays…
How to delete all cookies using Java Script
Here is a simple small function to delete all cookies using java script.You have to only call to this function.You can test this using firebug console.You can only remove cookies created by JavaScript.If a cookie was create by the server,…