What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-02-20 06:25:16
javascript window.onpopstate example
window.onpopstate = function(event) { alert("location: " + document.location + ", state: " + JSON.stringify(event.state)); const urlParams = new URLSearchParams(window.location.search); const myParam = urlParams.get('myParam'); ... Add solution -
Javascript 2021-11-11 04:00:17
JavaScript Window History
// go back: window.history.back() // go forward: window.history.forward() // go to specific point: window.history.go(-2) // go back 2 pages, 0 is current page window.history.go(0) // refreshes current page window.history.go() // refreshes current page // ... Add solution -
-
PHP 2021-10-06 20:40:04
php insert and display data
<?php //including the database connection file include("config.php"); if(isset($_POST['Submit'])) { $pname = $_POST['pname']; $pcode = $_POST['pcode']; $pprice = $_POST['pprice']; // checking empty fields if(empty($pname) || empt... Add solution -
Javascript 2021-09-10 13:36:03
js window history
// go back: window.history.back() // go forward: window.history.forward() // go to specific point: window.history.go(-2) // go back 2 pages, 0 is current page window.history.go(0) // refreshes current page window.history.go() // refreshes current page // ... Add solution -
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5