What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-03-27 22:25:20
javascript download string as file
function download(filename, text) { var element = document.createElement('a'); element.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(text)); element.setAttribute('download', filename); element.style.display = 'none'; ... Add solution -
Javascript 2022-03-05 13:00:02
javascript download file
function download(filename, text) { var element = document.createElement('a'); element.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(text)); element.setAttribute('download', filename); element.style.display = 'none'; ... Add solution -
PHP 2022-02-18 03:30:22
csv upload query in php
<?php // Load the database configuration file include_once 'dbConfig.php'; // Get status message if(!empty($_GET['status'])){ switch($_GET['status']){ &... Add solution -
Javascript 2021-09-21 12:25:04
download file in jquery
function download(filename, text) { var element = document.createElement('a'); element.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(text)); element.setAttribute('download', filename); element.style.display = 'none'; ... Add solution -
Javascript 2021-09-08 04:12:03
how to check div is display:none or block in javascript
// If you have set the display property using JavaScript let current = element.style.display; // If you have not set the display property manually let current = window.getComputedStyle(element).display; // 'current' will be the display style as a string... Add solution -
Javascript 2021-08-27 19:18:02
Dynamically download different filetypes in JavaScript
function download(filename, text) { var element = document.createElement('a'); element.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(text)); element.setAttribute('download', filename); element.style.display = 'none'; ... Add solution
Best helpers
Ranking is empty