Reputation: 133
Relatively new to JavaScript. Here is what I am trying to do:
1.) User clicks on hyperlink
2.) User is redirected to www.blah.com (a site I don't own)
3.) A value that is stored in the URL populates a textbox box.
BONUS:
4.) After the value is entered in the textbox, a named button is automatically activated to search for the entered string
I know if the textbox is in the SAME webpage as the hyperlink I can do something like:
<a href="#" onclick="document.getElementById('THEID').value='blah';">THELINK</a>
How do I do this to another page?
Upvotes: 0
Views: 268
Reputation: 1497
You cannot do that for a site you don't own, security issues. You can use GreaseMonkey scripts on chrome if this is more of a hack
Upvotes: 1