M
MKR
I need some help writing a Greasmonkey user script. An application that
I use generates HTML pages with tags like this:
<input type="button" name="9999" value="1234567890"
onClick="showitem('1234567890'); return false">
Sometimes I just want to copy the item number (i.e. the "value"
attribute), other times I actually want to click the button and see the
item. Right now I can see the item number as a button label, but I
cannot copy its value. What I want to do is to use a Greasmonkey user
script to replace the buttons with some like:
<a href="./info/1234567890.htm">1234567890</a>
Can someone show me how to do that in JavaScript?
Many thanks.
I use generates HTML pages with tags like this:
<input type="button" name="9999" value="1234567890"
onClick="showitem('1234567890'); return false">
Sometimes I just want to copy the item number (i.e. the "value"
attribute), other times I actually want to click the button and see the
item. Right now I can see the item number as a button label, but I
cannot copy its value. What I want to do is to use a Greasmonkey user
script to replace the buttons with some like:
<a href="./info/1234567890.htm">1234567890</a>
Can someone show me how to do that in JavaScript?
Many thanks.