What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-09-30 21:06:05
how to pass java variable to javascript function in jsp
<% String str="Hello World"; %> <html> <head> <script language="javascript"> function access(){ var s="<%=str%>"; alert(s); } </script> </head> <body onload="access()"&... Add solution -
Javascript 2021-09-30 20:50:05
simple alert program in javascript
<!DOCTYPE html> <html> <body> <h2>Biggnars platform</h2> <script> window.alert("My known programming languages are python,c# and java"); </script> </body> </html> Add solution -
Javascript 2021-09-30 02:12:04
event bubbling in javascript
<script> form.onclick = function(event) { event.target.style.backgroundColor = 'yellow'; // chrome needs some time to paint yellow setTimeout(() => { alert("target = " + event.target.tagName + ", this=" + this.tagN... Add solution -
Html 2021-09-30 00:43:03
how to center html heading
Use the "style" tag inline along with "text-align" to do it. For example; <html> <head></head> <body> <h1 style="text-align: center;">TEST HEADING</h1> </body> </html> Add solution -
Other 2021-09-29 13:45:03
change images click div
<!DOCTYPE html> <html> <head> <title>onClick Demo</title> </head> <body> <script> function toggleImage() { var img1 = "http://placehold.it/350x150"; var img2 = "http://placehold.it/2... Add solution