Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

Remove search page/Disable ''enter'' function



Site URL: https://caper-badger-3s6d.squarespace.com/blog/lyrics

Password: home

If I (accidentally) press ''enter'' in the search field, a new seach page appears. Is it possible to remove the link to this page and disable ''enter'' function on search?

I tried this code from @tuanphan, but it didn't work. Can anyone help me remove search page/disable enter function?

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.min.js"></script>
$("form").keypress(function(e) {
  //Enter key
  if (e.which == 13) {
    return false;


Edited by SolveigTraeet
Link to post
  • Answers 6
  • Created
  • Last Reply

Top Posters For This Question

6 answers to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

  • Create New...