>>>>>Look at appendChild, insertAdjacentElement, insertAdjacentHTML, innerHTML methods on MSDN for ways to insert the script into the loaded HTML page. If all else fails you can always write the original file as a local file, modify it there and reload it with the changes.
>>
>>Ok. No problem with insert strings into my loaded HTML... the big problem is that I didn´t find a JavaScript that does the job correctly... every script I found just shows an alert window, and if I rip off the allert, the code doesn´t work...
>
>I got it!
>But not full proof. Double rigthclick launch the context menu.
>
>
> [<S*RIPT LANGUAGE="JScript">]+chr(10)+;
> [function noway() { ]+chr(10)+;
> [if (event.button == 2) { ]+chr(10)+;
> [document.body.dragDrop();]+chr(10)+;
> [return false; ]+chr(10)+;
> [} ]+chr(10)+;
> [} ]+chr(10)+;
> [document.body.onmousedown=noway;]+CHR(10)+;
> [</S*RIPT>]
>
>
>
>HTH
Now i got it, i add a timeout to 1/10 second and repeat the same operation to disable an eventual second click.
Here is the code to add after the body tag in your page:
[<S*RIPT LANGUAGE="JScript">]+chr(10)+;
[function noway() { ]+chr(10)+;
[if (event.button == 2) { ]+chr(10)+;
[document.body.dragDrop();]+chr(10)+;
[window.setTimeout("noClick()",100)]+chr(10)+;
[return false; ]+chr(10)+;
[} ]+chr(10)+;
[} ]+chr(10)+;
[function noClick() { ]+chr(10)+;
[document.body.dragDrop();]+chr(10)+;
[} ]+chr(10)+;
[document.body.onmousedown=noway;]+CHR(10)+;
[</S*RIPT>]
If we exchange an apple, we both get an apple.
But if we exchange an idea, we both get 2 ideas, cool...Gérald Santerre
Independant programmer - internet or intranet stuff - always looking for contracts big or small :)
http://www.siteintranet.qc.ca