What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-09-08 20:19:01
Get Theme from URL Parameter and enable CSS theme
var head = document.getElementsByTagName('HEAD')[0]; const queryString = window.location.search; const urlParams = new URLSearchParams(queryString); const theme = urlParams.get('theme') var link = document.createElement('link'); link.rel = 'styleshee... Add solution -
PHP 2021-09-08 09:39:01
create a random question generator php
<?php //Connect with mysql $db = new mysqli("host","user","pass","db"); //Perform the query to choose random questions $query = $db->query("SELECT * FROM `table` ORDER BY RAND() LIMIT 2... Add solution -
Javascript 2021-09-08 02:10:01
how to reload a page in javascript
window.location.reload(); Add solution -
Javascript 2021-09-07 23:48:01
js change url
window.location.href = "www.google.com"; Add solution -
-
Other 2021-09-07 17:48:02
3d moves
javascript:window.location=document.getElementById('pnnext').href; Add solution -
Javascript 2021-09-07 06:38:03
react parameter value from query string
// As far as I know there are three methods you can do that. // Suppose an URL looks like this // http://www.google.com.au?token=123 // 1) use a third library called 'query-string'. import queryString from 'query-string' const value=queryString.parse(th... Add solution
Best helpers
Ranking is empty