Advertisement
Guest User

Swedish_multisearch_beta1

a guest
Nov 13th, 2016
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE html>
  2. <html>
  3.     <head>
  4.     </head>
  5.     <body style="background-color:grey">
  6.  
  7. <p>What Swedish word would you like to multisearch? Type below, then press enter please.</p>
  8. <input type="text" id="boxu" autofocus>
  9.  
  10.         <script>
  11. document.getElementById("boxu").onkeydown = function(e) {searchy(e)};
  12. function searchy(e)
  13. {
  14.     if (e.which == 13)
  15.     {
  16.      var q = document.getElementById("boxu").value;
  17.      window.open("http://images.google.se/search?q=" + q + "&tbm=isch&sout=1");
  18.      window.open("http://lexin.nada.kth.se/lexin/#searchinfo=both,swe_swe," + q + ";");
  19.      window.open("http://www.forvo.com/word/" + q + "/#sv");
  20.      window.open("http://folkets-lexikon.csc.kth.se/folkets/folkets.en.html#lookup&" + q + "&0" );
  21.      window.open("https://sv.wiktionary.org/wiki/" + q);
  22.      document.getElementById("boxu").value = "";       
  23.     }
  24. }
  25.         </script>
  26.     </body>
  27. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement