Question:

Firefox 3 javascript:... in address bar = redirection

by Guest32220  |  earlier

0 LIKES UnLike

Hi!

When I enter JavaScript in Firefox 3's address bar that changes the value of an element (like hiding a layer), it will correctly execute. However, it will redirect me to a blank page with the new value that I have just assigned via script.

How can I stop the redirection? Adding return; or return true; or return false; stops the script from executing completely. One way I've found out is to add alert(""); but that is a little annoying. I figured there has to be another way.

Thanks a bunch in advance!

jef

 Tags:

   Report

1 ANSWERS


  1. there is a firefox add-on called fire bug

    You can type the javaScript commands in the console at the bottom, and it will not redirect your page.

    just click this link, and click the "add to firefox" button.

    https://addons.mozilla.org/en-US/firefox...

    then you will have a small bug in the lower right corner.  click him, and you have a console on the bottom.  This is a WONDERFUL tool for javaScript, CSS and HTML work.

    enjoy,

    theCowboyCoder

Question Stats

Latest activity: earlier.
This question has 1 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.