What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-10-20 11:38:08
HTML5 Accesskey Attribute: you may not need JavaScript to add Keyboard Shortcuts
// Register the key handler document.addEventListener('keyup', function(e){ // This would be triggered by pressing CTRL + A if (e.ctrlKey && e.keyCode == 65) { window.location.href = "http://ourcodeworld.com"; } ... Add solution -
Javascript 2021-10-16 11:54:08
navigate to url jquery
//As an HTTP redirect (back button will not work ) window.location.replace("http://www.google.com"); //like if you click on a link (it will be saved in the session history, //so the back button will work as expected) window.location.href = &qu... Add solution -
Javascript 2021-10-12 03:23:07
javascript onclick open url same window
/* FIRST WAY*/ window.open("instagram.com/9_tay", "_self") /* SECOND WAY*/ window.location.href = "instagram.com/9_tay" /* THEARD WAY*/ window.location.replace("instagram.com/9_tay") Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5