How can I load a javascript file using a bookmarklet that in turn does not redirect/rewrite the page?

My best guess is that the ipd. Js file is using document.write() somewhere in its code. In which case you need to modify ipd.

Js so that it doesn't do this As I've suspected ipd. Js is written by a javascript newbie: document. Write('') Modify it to use appendChild(createElement(...)) instead.

My best guess is that the ipd. Js file is using document.write() somewhere in its code. In which case you need to modify ipd.

Js so that it doesn't do this. As I've suspected, ipd. Js is written by a javascript newbie: document.

Write(''); Modify it to use appendChild(createElement(...)) instead.

Nice. I'll give this a go and see what happens. What is it about document.

Write that barfs this up? – cottsak Sep 8 '10 at 9:05 1 document.write() has two behavior. If the page haven't finished loading it appends whatever is written to the page.

But if the page have finished loading (as it is in your case) it replaces ALL THE PAGE CONTENT. – slebetman Sep 8 '10 at 9:55 Not 100% that this was the solution but it seems the most logical. – cottsak Dec 1 '10 at 7:33.

This method does not do exactly what you want, but it merge two(or more) function into one bookmarklet. To do this try separate another command using "javascript:" protocol. When you click the bookmarklet, it will redirect you to the URL specified.

However, you must click bookmark again to run the second part.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions