A method, comprising: receiving a webpage at an electronic device; determining whether a touch event handling property is defined for the webpage; receiving a first touch event at the electronic device while the webpage is displayed in a browser environment executing on the electronic device; when it is determined that the first touch event handling property has not been predefined for the webpage or when the first touch event handling property is predefined for the webpage and is assigned a value indicating that default handling function included in the web browser environment are permitted; if a default handing function is available to handle the first touch event, the browser environment handling the first touch event using one of the plurality of default function; if a default handling function is not available to handle the touch event and a script or other webpage-defined event handler is provided with the webpage to handle the touch event, executing said script or other webpage defined event handler to handle said first touch; and when the touch event handling property is defined for the webpage and is assigned a value indicating that default handling functions are not permitted, executing the script for other webpage-defined event handler to handle the touch event, if the script or other webpage-defined event handler is provided for the webpage. receiving a webpage at an electronic device; determining whether a touch event handling property is defined for the webpage; receiving a first touch event at the electronic device while the webpage is displayed in a browser environment executing on the electronic device; when it is determined that the first touch event handling property has not been predefined for the webpage or when the first touch event handling property is predefined for the webpage and is assigned a value indicating that default handling function included in the web browser environment are permitted; if a default handing function is available to handle the first touch event, the browser environment handling the first touch event using one of the plurality of default function; if a default handling function is not available to handle the touch event and a script or other webpage-defined event handler is provided with the webpage to handle the touch event, executing said script or other webpage defined event handler to handle said first touch; and if a default handing function is available to handle the first touch event, the browser environment handling the first touch event using one of the plurality of default function; if a default handling function is not available to handle the touch event and a script or other webpage-defined event handler is provided with the webpage to handle the touch event, executing said script or other webpage defined event handler to handle said first touch; and if a default handling function is not available to handle the touch event and a script or other webpage-defined event handler is provided with the webpage to handle the touch event, executing said script or other webpage defined event handler to handle said first touch; and when the touch event handling property is defined for the webpage and is assigned a value indicating that default handling functions are not permitted, executing the script for other webpage-defined event handler to handle the touch event, if the script or other webpage-defined event handler is provided for the webpage.