So i thought this might work:
<script type="text/javascript">
function quoteText()
{
if(document.getSelection) {
document.getSelection.toString().replace(/^/g, ">");
}
}
</script>
<div class="toolstrip-button" onclick="quoteText()">
<span>Quote</span>
</div
but its not. How come i can't get the selection? also, console.log
isn't working, my script isn't showing up in the debugger window as an
option under scripts. But if i use window.open("here"); it opens a
window.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Chromium-extensions" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/chromium-extensions?hl=en
-~----------~----~----~----~------~----~------~--~---