- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Lakshmi Srinivas has Published 315 Articles
Lakshmi Srinivas
161 Views
The touchstart event is fired when the touchpoint is positioned on the touch surface. Use addEventListener() for touchmove pointer-events −overlay.addEventListener('touchstart', function(ev){ ev.preventDefault(); });Here, we have also used the preventDefault() method. The preventDefault() method prevents the browser from executing the default action.
Lakshmi Srinivas
102 Views
Use the order property to set the order of the flex itemsYou can try to run the following code to implement the CSS order property −ExampleLive Demo .mycontainer { display: flex; ... Read More
Lakshmi Srinivas
995 Views
To style input type = number, use the following CSS −input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; }The above shows without a spinner.To show and style a spinner, useinput[type=number]::-webkit-inner-spin-button { opacity: 1; }OutputThe above shows the following output −
Lakshmi Srinivas
195 Views
To solve this problem, follow the below-given steps −For android versions less than 4.4, loading data into a webview with a file scheme as a directory like this won’t work.browser.loadDataWithBaseUrl("file:///android_asset/", html, "text/html", "UTF-8", null);Add a filename and it works on older Android versions −browser.loadDataWithBaseUrl("file:///android_asset/new.html", htmlContent, "text/html", "UTF-8", null);You can use ... Read More
Lakshmi Srinivas
3K+ Views
Many ways are available to make the web page height to fit the screen height −Give relative heights −html, body { height: 100%; }You can also give fixed positioning −#main { position:fixed; top:0px; bottom:0px; left:0px; right:0px; }You can also use Viewport height to fulfill ... Read More
Lakshmi Srinivas
3K+ Views
The leading zero issues may arise when you want to add an international phone number.To solve this −On iOS, the numeric keyboard appears with only numbers.On Android phones, the "tel" is rightly interpreted but not the pattern.You can also use −
Lakshmi Srinivas
124 Views
The following are some of the best frameworks for HTML5 based mobile development −Kendo UIUse Kendo UI to develop an invaluable cross-platform mobile application.BootstrapBootstrap supports HTML, CSS, and JS that allows developing mobile apps with responsive layouts.IonicIonic is an open-source framework used for developing mobile applications. It provides tools and ... Read More
Lakshmi Srinivas
661 Views
When there is a requirement to pull down the screen to refresh the page to get latest updates, this can be done with the help of JavaScript, xhttprequests and then touch events.Pull refresh is a trigger to XHR in AJAX .It adds new data to the element we want.Pull refresh ... Read More
Lakshmi Srinivas
124 Views
jQuery Data Table provides export buttons with the help of which we can make a structure like the following −Export PDFExport CSVExport HTMLExport ExcelFor this, we need to write code −var tbl = $('#extable').DataTable({ dom: 'export', buttons: [ { ... Read More
Lakshmi Srinivas
642 Views
Use the height property to set the height of an element. You can try to run the following code to set the height of a button with JavaScript −ExampleLive Demo Heading 1 This is Demo Text. Update Height function display() { document.getElementById("myID").style.height = "100px"; }
To Continue Learning Please Login
Login with Google