Javascript-Jscript: Unterschied zwischen den Versionen

Aus Zovis Wikili
Wechseln zu: Navigation, Suche
Zeile 5: Zeile 5:
 
   var scrt_var = 10;
 
   var scrt_var = 10;
 
   openPage = function()  
 
   openPage = function()  
   {location.href = "2.html?Key="+scrt_var;
+
   {
 +
  location.href = "2.html?Key="+scrt_var;
 
   }
 
   }
 
   </script>
 
   </script>

Version vom 21. November 2018, 23:33 Uhr

Code in HTML-Link einfügen

<html>
 <script language="javascript" type="text/javascript">
  var scrt_var = 10;
  openPage = function() 
  {
  location.href = "2.html?Key="+scrt_var;
  }
 </script>
 this is a <a href ="javascript:openPage()">Link  </a>
</html>