• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Javascript onClick command to open CTRL-F

Community Beginner ,
Jul 05, 2024 Jul 05, 2024

Copy link to clipboard

Copied

Hello 

 

Im looking to add javascript to a onclick in the azure blue output.  What im looking to do is add a button to the output that will open the CTRL-F in the browser, is this possible?  

Views

82

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 06, 2024 Jul 06, 2024

Copy link to clipboard

Copied

Anything that simulates keyboard action would break every security rule in the book.

 

ChatGPT gives this answer.

JavaScript itself cannot directly simulate a CTRL+F action (the browser's "Find" functionality) due to browser security restrictions that prevent scripts from interfering with or mimicking user input for security and usability reasons.

 

It goes on to give an example of how you can create a simple search functionality using JavaScript but it looks like a lot of work in every topic.

________________________________________________________

My site www.grainge.org includes many free Authoring and RoboHelp resources that may be of help.

 

Help others by clicking Correct Answer if the question is answered. Found the answer elsewhere? Share it here. "Upvote" is for useful posts.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jul 08, 2024 Jul 08, 2024

Copy link to clipboard

Copied

LATEST

Figured that might be the case, thanks for info Peter!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
RoboHelp Documentation
Download Adobe RoboHelp