Method for translating webpage contents and electronic device

The present invention discloses a method for translating webpage contents. The method comprises: when a user browses a first webpage, determining contents on the first webpage are preset contents; if yes, detecting whether the user carries out a dragging and selecting operation on the first webpage;...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
1. Verfasser: CHEN YAOPAN
Format: Patent
Sprache:eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The present invention discloses a method for translating webpage contents. The method comprises: when a user browses a first webpage, determining contents on the first webpage are preset contents; if yes, detecting whether the user carries out a dragging and selecting operation on the first webpage; if yes, determining words selected by the user on the first webpage based on the dragging and selecting operation; outputting a first window near the selected words; detecting whether a triggering operation for triggering a preset button in the first window exists; and if yes, outputting a translated text of the selected words. The method realizes the technical effect that when the user browses webpages related to learning and work, a browser can automatically start word dragging and translating functions, so that when the user encounters unknown foreign words, a translated text of the foreign words can be conveniently and rapidly obtained. Meanwhile, the present invention also discloses an electronic device.