Jump to content

Help! Simple push-button task, but very hard to find code!

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1
MyHub

MyHub

    Newbie

  • Members
  • Pip
  • 2 posts
I'm looking for code to do the following simple task:

- A button on a webpage is clicked.
- Once clicked, the text in the URL address bar is highlighted.

Pressing Alt-D can do this, but I'm looking for the button version.
I've looked all over, and I can't find it. Please help :confused:

#2
Sinipull

Sinipull

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 386 posts
That's because you are looking for Java codes, but actually mean JavaScript...

#3
wim DC

wim DC

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,084 posts
I think it's nearly impossible. Javascript has no access to the address bar. And Javascript has no SendKey() method (to emulate ALT+D) due to security reasons.