A
A
Anton2017-04-24 18:24:27
JavaScript
Anton, 2017-04-24 18:24:27

How to cancel Boomark navigation with JS in Firefox?

Nakalyakal script, namely - the numbering of positions in the issuance of a search engine.
In chrome, the created bookmark works well when it is called, the page does not refresh, but in the fox it does not want to.
That is, formally it works there, but upon completion of the script, it goes to the "address", i.e. to the JS code itself, and I see on the new page:
[object Object]
And how can I make the fox just work out this bookmark and not refresh anywhere, in the manner of a regular console in the inspector?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton, 2017-04-24
@Eridani

The issue is resolved ... Thanks stack.
Wrapping code from an anonymous function helped

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question