answersLogoWhite

0

Javascript is a scripting language commonly used on websites to accomplish some tasks through the browser. The redirect function in Javascript allows the webpage to tell the browser to visit another page, typically as the result of some action that triggered a script, or on loading. This can be used for legitimate purposes, such as redirecting multiple webpage entries to actually connect to one single document where the information is stored. This can also be used for illegitimate purposes, such as through an ad banner that hijacks the browser, sending it to another site to either present an ad or attempt to infect through virus.

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

How do you redirect your website to an optimized iPhone version?

Put this code on the webpage you want to redirect: <script language=javascript> <!-- if((navigator.userAgent.match(/iPhone/i)) (navigator.userAgent.match(/iPod/i))) { location.replace("*REDIRECT LINK HERE*"); } --> </script>


What unit is used for timing Javascript events?

Milliseconds are used for timing JavaScript events.


Can javascript be used in Jtextpane in swing?

No. JavaScript can be used only in HTML and other Web Components


How do you redirect a user using javascript?

To redirect a user using javascript, include this in your <head> section: <script type="text/javascript">window.location.href = "http://example.com";</script> Note that such redirection should be avoided where possible. It's a legacy practice that really should no longer be used/available. If you have access to your HTTP server, you are best advised to use the redirection tools/configurations that server provides. If you are just moving a document, you would best simply provide a page that displays a link to the new page to tell the visitor it has permanently moved, and to update their direct links. Better yet: don't move the page.


How is javascript used?

JavaScript is used to make HTML DHTML or Dynamic HTML. Provides a lot more interactivity between the web page and the browser provided JavaScript is not turned off.


What are the main functions of Javascript?

Javascript can be used on a variety of platforms which require simple computer commands but not a full programming language. Javascript can be used as or in addition to a full fledged programming language.


Do you need java compiler to execute HTML programs written in javascript?

No, Java and JavaScript are nothing to do with each other, JavaScript is a form of EMCAScript, not Java. Every modern browser comes with a JavaScript engine that is used to understand JavaScript. so there is no need for it, no.


Which button is used to redirect an email?

forward


What programming language is used for webOS applications?

HTML5, JavaScript, CSS


What is Undefined in javascript?

In JavaScript undefined is a special value used when a variable has not had a value set to it, or has not been declared.


What is the use of id in javascript?

ID in JavaScript can be used to refer a control. For example getElementbyID("#name-of-id").


What is the difference between Javascript and Jquery?

JavaScript is a scripting language that is mainly used within a web browser. Jquery is a library of javascript code that can be used together with your javascript program. A set of functions that can preform common tasks is provided, which will reduce the amount of code that you have to write yourself.