Method and device for resource sharing

The invention provides a method and device for resource sharing. The method includes the steps that if the type of an object resource file is detected to meet a detecting condition, a dialog box pops up to remind a user whether URL sharing needs to be performed on the object resource file or not, wherein the dialog box is used by the user for selection of open modes and addition of an URL sharing option, and if the user selects the URL sharing option, a URL is obtained and sent to a second intelligent device. The user transfers input operation to a first intelligent device, a resource file meeting the detecting condition is selected, and then the URL of the resource file is obtained and sent to the second intelligent device, so that the second intelligent device rapidly shares the URL with the first intelligent device under the condition that input is tedious, and the secondary intelligent device is not provided with a peripheral device which facilitates the input modes. The operation process is simple, and the extra high-cost peripheral device needs not to be added. The URL of the resource file in a webpage is shared by the user through the intelligent devices with improved efficiency and convenience.