What do you want to save?
Add Code snippet
New code examples
-
Other 2021-11-12 22:52:15
The title attribute should always be used in the 'frame' or 'iframe' element.
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>A document using iframe</title> </head> ... <iframe src="banner-ad.html" id="testiframe" name="testiframe" title... Add solution -
Javascript 2021-11-12 09:36:11
jquery link click scroll
// Select all links with hashes $('a[href*="#"]') // Remove links that don't actually link to anything .not('[href="#"]') .not('[href="#0"]') .click(function(event) { // On-page links if ( location.pathn... Add solution -
Javascript 2021-11-10 03:39:25
permission api js
navigator.permissions.query({name:'geolocation'}).then(function(result) { if (result.state == 'granted') { showLocalNewsWithGeolocation(); } else if (result.state == 'prompt') { showButtonToEnableLocalNews(); } // Don't do anything if the permis... Add solution -
Python 2021-11-08 00:14:09
how to make a game score calculator in python
#Entering how many matches and the scores lst = [] num = int(input('How many matches(3-10 matches): ')) for n in range(num): numbers = int(input('If los enter 1, if win enter 0: ')) lst.append(numbers) lst_sum = sum(lst) #Telling if you won or lo... Add solution -
Python 2021-11-07 21:58:17
python create file
file = open("text.txt", "w") file.write("Your text goes here") file.close() 'r' open for reading (default) 'w' open for writing, truncating the file first 'x' open for exclusive creation, failing if the file already exists... Add solution -
C++ 2021-11-07 05:51:12
palindrome
function isPalindrome(sometext) { var replace = /[.,'!?\- \"]/g; //regex for what chars to ignore when determining if palindrome var text = sometext.replace(replace, '').toUpperCase(); //remove toUpperCase() for case-sensitive for (var i = 0; i... Add solution