By Melvin Dev
This feature works while you are coding, you need to split the code and the design view, the design view is what you see while you are creating the app and typing your code. We are going to start a new app.
From the menu tap New App
Tap Blank App
Split the code and desing view. You can split it by using the mouse or by tapping the split button that is located at the bottom bar, when you tap the split button it will slplit the code and design view by half and half of the screen size.
You need to write your code between
To test it we are going to write the following code
Note that there is an error and you will get the following error in desing view
Unable to set property 'innerHTML' of undefined or null reference
You get this error because the previous code is trying to get element
timeresul and we don't have any element
with the id
timeresul but we have an element with the id
The correct code should be
And you will get the date and time result without error.