Directly you can’t create the link on the canvas but you can write a text and can detect the click on this text and then you can use the window.location property.
Draw the Car and Move forward and backward with arrow keys
I have been working with HTML 5 from its starting days and Here I’ll discuss that why does I like it and several features of the HTML 5 that make easier to write the web page.
Geolocation is the HTML 5 API that is used to get the location of the user. You can get the latitude and longitude of the user’s location. Importance But the question is why this service is so useful? I will try to explain let’s suppose you are travelling a city and you have not adequate … Continue reading Starting with geolocation api in HTML 5
In the following example, you’ll see that how you can delete the elements with the help of drag and drop effect. The Demo allows the user to drag an li element to another location, and drop the element over div to remove.
Now you can generate the PDF document through the client side library jsPDF. You can create the PDF using main built-in function such as insert image, insert text with different fonts to pdf etc. Normally user creates the pdf programmatically on the server side that may lead to decrease the performance of your web page.
The canvas size and image size both are different things. The canavs is the DOM element in the HMML5 that allows drawing the 2D shapes and bitmap images. To draw the image on the canvas, it should be cheked that what the dimensions of the loaded image is, and if the original image’s height and … Continue reading Set size of an image in the HTML5 canvas
The input type=color is one of the new input types of the HTML5. This input type allows the user to select a color with the help of color picker and returns the hexadecimal value for the selected color. You will see how to use and how to get the value of the selected color in … Continue reading Working with input type color in HTML5
In HTML5 canvas’s 2D context support three methods that can draw pixel by pixel: createImageData, getImageData, and putImageData. With the help of these methods you can filtering the image on the canvas such as inversion of the image. The following code section will show you that how can you invert the image on canvas.